You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to make util_log.Logger.WithContext() always log TraceID
#4845
And this tracing.ExtractSampledTraceID(ctx) (original commit@aknuds1 made) will check jaeger.SpanContext.IsSampled(), if it return false, util_log.Logger.WithContext() will not log TraceID, I want TraceID can be logged when util_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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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!All reactions