Skip to content

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

Merged
marcotc merged 1 commit into
masterfrom
computed-top-level-header
Jul 13, 2022
Merged

Tell agent to trust tracer top-level span tagging#2138
marcotc merged 1 commit into
masterfrom
computed-top-level-header

Conversation

@marcotc

@marcotc marcotc commented Jul 8, 2022

Copy link
Copy Markdown
Member

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.

2 participants