MCPcopy
hub / github.com/grafana/dskit / Finish

Method Finish

tracing/span.go:78–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (s *Span) Finish() {
79 if s.opentracingSpan != nil {
80 s.opentracingSpan.Finish()
81 }
82 if s.otelSpan != nil {
83 s.otelSpan.End()
84 }
85}
86
87func SpanFromContext(ctx context.Context) (otelSpan trace.Span, opentracingSpan opentracing.Span, sampled bool) {
88 if opentracingSpan = opentracing.SpanFromContext(ctx); opentracingSpan != nil {

Callers 5

CollectedRequestFunction · 0.45
TestStartSpanFromContextFunction · 0.45
TestStartSpanFromContextFunction · 0.45
TestStartSpanFromContextFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestStartSpanFromContextFunction · 0.36
TestStartSpanFromContextFunction · 0.36
TestStartSpanFromContextFunction · 0.36