MCPcopy
hub / github.com/grafana/tempo / Inject

Method Inject

modules/distributor/receiver/tracing.go:43–49  ·  view source on GitHub ↗
(ctx context.Context, carrier propagation.TextMapCarrier)

Source from the content-addressed store, hash-verified

41}
42
43func (o onlySampledTraces) Inject(ctx context.Context, carrier propagation.TextMapCarrier) {
44 sc := trace.SpanContextFromContext(ctx)
45 if !sc.IsSampled() {
46 return
47 }
48 o.TextMapPropagator.Inject(ctx, carrier)
49}
50
51func extractTracingContextFromMetadata(ctx context.Context, md client.Metadata) context.Context {
52 carrier := &clientMetadataCarrier{metadata: md}

Callers 1

addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected