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 attribute to frontend spans #795

Merged
merged 3 commits into from
Mar 17, 2023

Conversation

martinkuba
Copy link
Contributor

Changes

This adds back the app.session.id span attribute that was originally handled in the Go frontend server. The attribute is added for browser spans as well as some spans from the frontend server.

Resolves #758

@martinkuba martinkuba requested a review from a team March 17, 2023 03:07
@cartersocha
Copy link
Contributor

Please add a changelog item too when you get a chance

Copy link
Contributor

@cartersocha cartersocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cartersocha
Copy link
Contributor

Should we note this only appears on non-synthetic requests in our docs? @open-telemetry/demo-approvers

Also maybe it's just me but I find front-end, front-end-web, and front-end-proxy confusing. Might be worth re-naming one of the user facing services or the synthetic pair. I'd expect to see my user generated traces in the general front-end bucket but you have to go to another service that starts reporting post website interaction

Copy link
Member

@julianocosta89 julianocosta89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @martinkuba 👋🏽 ,

Thanks for taking care of this 🤩

I've tried it out, but couldn't make it work.
Where is the app.session.id supposed to be?
I've re-built the sample, started it, stopped the loadgen, and accessed the frontend manually.
When navigating through the generated spans, I could only find the id as part of the http.url and there was no app.session.id attribute, as we can see in the screenshot below:
Screenshot from 2023-03-17 07-24-23

Am I missing something?

@cartersocha
Copy link
Contributor

cartersocha commented Mar 17, 2023

@julianocosta89 it only shows on user generated traces rn in the front-end-web service. See my comments above

@julianocosta89
Copy link
Member

@cartersocha I stopped the loadgen and navigated manually.

@martinkuba
Copy link
Contributor Author

@julianocosta89 I have pulled down the codebase to a different directory, rebuilt from my branch, and I am seeing the app.session.id attribute there.

image

@cartersocha Are you seeing this on your end?

Copy link
Member

@julianocosta89 julianocosta89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @martinkuba!
Looks like I did something wrong. Re-built it again and now it worked.

LGTM!

@cartersocha
Copy link
Contributor

Please add the changelog item and we're ready to merge!

@cartersocha cartersocha merged commit 5f7517a into open-telemetry:main Mar 17, 2023
mat-rumian pushed a commit to SumoLogic/opentelemetry-demo that referenced this pull request Mar 20, 2023
juliangiuca pushed a commit to juliangiuca/opentelemetry-demo that referenced this pull request Apr 12, 2023
jmichalak9 pushed a commit to jmichalak9/opentelemetry-demo that referenced this pull request Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontend span attribute app.session.id gone
3 participants