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

Function findSpanByName

server/internal/oteltest/server_otel_test.go:298–305  ·  view source on GitHub ↗
(spans tracetest.SpanStubs, op string)

Source from the content-addressed store, hash-verified

296}
297
298func findSpanByName(spans tracetest.SpanStubs, op string) (tracetest.SpanStub, bool) {
299 for _, span := range spans {
300 if span.Name == op {
301 return span, true
302 }
303 }
304 return tracetest.SpanStub{}, false
305}

Callers 1

assertTracingSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected