Skip to content

fix(frontend): switch off the http instrumentation to avoid duplicate spans #2191

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cedricziel
Copy link
Contributor

NOTE: this is a followup of #2190 in relation to #2189

Changes

Turn off instrumentation for incoming http requests in frontend. This avoids creating duplicate spans.

Needs to be thoroughly validated.

@cedricziel cedricziel requested a review from a team as a code owner May 16, 2025 08:30
@cedricziel cedricziel changed the title fix(frontend): reduce cardinality in next.js spans with processor fix(frontend): switch off the http instrumentation to avoid duplicate spans May 16, 2025
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 24, 2025
@cedricziel cedricziel removed the Stale label May 25, 2025
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.

Same thing as #2190 (review)

We should raise this to the js SIG and try to solve in the instrumentation side.

Meanwhile in the Demo we can have the transform processor taking care of it on the Collector.

Copy link

github-actions bot commented Jun 3, 2025

This PR was marked stale due to lack of activity. It will be closed in 7 days.

Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@puckpuck
Copy link
Contributor

I agree that having 2 server spans is not ideal, but disabling the HTTP auto instrumentation may not be the ideal situation here. The HTTP instrumented span contains several details that are not part of the Next.js span.

I do agree with Juliano that this is an instrumentation issue that should be fixed there. Perhaps we should use a collector transform rule to change the span kind for the Next.js spans instead?

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.

3 participants