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

"Session" support for web tracing #952

Open
austinlparker opened this issue Mar 18, 2022 · 5 comments
Open

"Session" support for web tracing #952

austinlparker opened this issue Mar 18, 2022 · 5 comments

Comments

@austinlparker
Copy link
Member

austinlparker commented Mar 18, 2022

Is your instrumentation request related to a problem? Please describe

A front-end application often has many hundreds or thousands of individual requests or transactions as part of a greater 'user session' that can take place over minutes or hours. A single trace that attempted to capture all events as part of this session would be unmanageable for analysis, and would appear 'broken' until the session completed even as back-end work was performed. Web instrumentation should be able to correlate logical interactions occurring within a single session to each other using links.

Is it applicable for Node or Browser or both?

Browser

Do you expect this instrumentation to be commonly used?

Yes. :)

What version of instrumentation are you interested in using?

n/a

Additional context

My gut feeling is that this is somewhat of a large problem to solve as session management isn't something we can infer. What I believe this instrumentation should be is a "helper" that can manage starting/ending sessions, along with keeping track of trace context state, in order to aid developers in linking traces that are part of a single session together. Once this exists, there would be a lot of potential applications -- my immediate thought is that this could be connected with user analytic tools such as Segment in order to attach trace context to segment events, allowing devs + product managers to create SLO's that can see individual user behavior and link it to back-end signals.

I'm opening this issue because I think this would be something that'd be keen to provide and really help with the 'RUM' component of otel-web, and would like to get it on maintainer's radar.

@austinlparker
Copy link
Member Author

I've also been informed that there's an OTEP baking that includes this type of work so it can probably be considered with that when it lands.

@vmarchaud
Copy link
Member

vmarchaud commented Mar 18, 2022

@austinlparker
Copy link
Member Author

Thanks!

@padzikm
Copy link

padzikm commented Feb 18, 2023

Hi, I implemented session tracing by using links - you can see example here https://github.com/padzikm/TiltSample/blob/master/frontend/src/app/app.component.ts
Each request to backend is separate trace as normal, but with link to originated frontend trace and frontend trace also has link to each newly created backend trace. Let me know what do you think of that

@robchronosphere
Copy link

Thanks for sharing, Padzikm!

Do you have any updates on when a fully integrated version of RUM session support might be available? It’s definitely the most requested feature I've been hearing about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants