Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add session id to the baggage in baggage span processor? #75

Closed
JamieDanielson opened this issue Feb 15, 2024 · 2 comments
Closed

Add session id to the baggage in baggage span processor? #75

JamieDanielson opened this issue Feb 15, 2024 · 2 comments
Assignees
Labels
type: enhancement New feature or request

Comments

@JamieDanielson
Copy link
Contributor

          do you think it'd be useful to add the session id to the baggage? thinking it would help link server-side traces to specific sessions

Originally posted by @ahrbnsn in #74 (comment)

@JamieDanielson JamieDanielson added the type: enhancement New feature or request label Feb 15, 2024
@JamieDanielson JamieDanielson self-assigned this Feb 22, 2024
@JamieDanielson JamieDanielson added this to the Beta milestone Feb 22, 2024
@JamieDanielson
Copy link
Contributor Author

I don't think this is possible today with how the context API works in JS. In some languages like Python and Ruby, you can attach and detach context. In JS, the context is scoped and you use callbacks to apply a specific context.

I started on a branch that has some ideas and comments in one commit, and then a possible way of supplying functions for other types of IDs that may be useful, added as span attributes using a new span processor.

@JamieDanielson JamieDanielson removed this from the Beta milestone Feb 27, 2024
@wolfgangcodes
Copy link
Contributor

Thanks @JamieDanielson for your investigation! We can reopen or file a new issue as the JS Context landscape evolves, but currently this is not we're actively taking action on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants