MCPcopy Create free account
hub / github.com/cortexproject/cortex / jaegerTraceID

Function jaegerTraceID

pkg/querier/tripperware/queryrange/results_cache.go:783–790  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

781}
782
783func jaegerTraceID(ctx context.Context) string {
784 spanContext, ok := getSpanContext(ctx)
785 if !ok {
786 return ""
787 }
788
789 return spanContext.TraceID().String()
790}
791
792func getSpanContext(ctx context.Context) (jaeger.SpanContext, bool) {
793 span := opentracing.SpanFromContext(ctx)

Callers 2

handleHitMethod · 0.85
toExtentFunction · 0.85

Calls 2

getSpanContextFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected