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

Tell agent to trust tracer top-level span tagging #2138

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Jul 8, 2022

Follow up from #2137.

This PR lets the Agent know that the tracer has calculated top-level spans and tagged them appropriately.

This prevents partially flushed trace segments from being considered top-level, which used to create incorrect metrics and increase the resource name cardinality for the affected service name.

Any value can be set in the HTTP header. The agent simply checks if it's not empty.

(If you are still confused, the description of #2137 has all the information regarding this and the previous PR)

@marcotc marcotc self-assigned this Jul 8, 2022
@marcotc marcotc requested a review from a team July 8, 2022 01:22
@marcotc marcotc force-pushed the computed-top-level-header branch from bce4eb9 to d5c9a44 Compare July 8, 2022 01:22
Base automatically changed from compute-top-level to master July 8, 2022 17:45
@marcotc marcotc changed the title Tell agent to trust trace top-level span tagging Tell agent to trust tracer top-level span tagging Jul 8, 2022
@marcotc marcotc merged commit f711887 into master Jul 13, 2022
@marcotc marcotc deleted the computed-top-level-header branch July 13, 2022 19:39
@github-actions github-actions bot added this to the 1.3.0 milestone Jul 13, 2022
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.

None yet

2 participants