Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Add jaeger-debug-id as a tag #190

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

goller
Copy link
Contributor

@goller goller commented Nov 20, 2019

Which problem is this PR solving?

resolves #136

Short description of the changes

If the trace was started with a debugID, adding jaeger-debug-id
as tag ensures that the trace will be sampled in the "debug" mode.

Additionally, the root span will have this ID as a searchable tag.

If the trace was started with a debugID, adding jaeger-debug-id
as tag ensures that the trace will be sampled in the "debug" mode.

Additionally, the root span will have this ID as a searchable tag.

Resolves: jaegertracing#136

Signed-off-by: Chris Goller <[email protected]>
@AppVeyorBot
Copy link

@yurishkuro
Copy link
Member

please use resolves #123 text in the description so that GH can auto-close the ticket on merge

@@ -85,6 +86,7 @@ Tracer::StartSpanWithOptions(string_view operationName,
flags |=
(static_cast<unsigned char>(SpanContext::Flag::kSampled) |
static_cast<unsigned char>(SpanContext::Flag::kDebug));
samplerTags.push_back(Tag(kJaegerDebugHeader, parent->debugID()));
Copy link
Member

Choose a reason for hiding this comment

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

is there a unit test which can check that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @yurishkuro thanks for the review; tests added in 7d81527

@AppVeyorBot
Copy link

@yurishkuro yurishkuro merged commit 741b1af into jaegertracing:master Nov 23, 2019
@goller
Copy link
Contributor Author

goller commented Nov 23, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically add tag with value of jaeger-debug-id header
3 participants