Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

feat: allow incoming http header to override span name#821

Closed
kjin wants to merge 3 commits intogoogleapis:masterfrom
kjin:span-name-override
Closed

feat: allow incoming http header to override span name#821
kjin wants to merge 3 commits intogoogleapis:masterfrom
kjin:span-name-override

Conversation

@kjin
Copy link
Copy Markdown
Contributor

@kjin kjin commented Jul 25, 2018

This PR introduces Tracer#constants.TRACE_SPAN_NAME_OVERRIDE which, when used as a header key on an incoming request, changes the span name to the value of this header.

@kjin kjin requested a review from a team July 25, 2018 16:55
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 25, 2018
@kjin kjin force-pushed the span-name-override branch from fc37566 to 3670a86 Compare July 25, 2018 16:56
Copy link
Copy Markdown
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

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

This mechanism can be abused / spammed as the headers are generally in control of clients.

@kjin kjin force-pushed the span-name-override branch from 2fe9754 to 9893bb3 Compare July 25, 2018 23:56
@kjin
Copy link
Copy Markdown
Contributor Author

kjin commented Jul 31, 2018

@ofrobots I added a config option that turns this feature on. By default it is off.

@kjin
Copy link
Copy Markdown
Contributor Author

kjin commented Aug 2, 2018

Closed in favor of #826.

@kjin kjin closed this Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants