Replies: 1 comment
-
@aknuds1 could you please help with this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Community,
Since cortex v1.11.0
util_log.Logger.WithContext()
calltracing.ExtractSampledTraceID(ctx)
instead oftracing.ExtraceTraceID(ctx)
https://github.com/cortexproject/cortex/blob/v1.11.0/pkg/util/log/wrappers.go#L41.And this
tracing.ExtractSampledTraceID(ctx)
(original commit @aknuds1 made) will checkjaeger.SpanContext.IsSampled()
, if it return false,util_log.Logger.WithContext()
will not log TraceID, I want TraceID can be logged whenutil_log.Logger.WithContext()
get called, I'm not familiar with jaeger tracing, how can I achieve that? Is there any configuration I can set to make this happen? Thank you!Beta Was this translation helpful? Give feedback.
All reactions