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

Function spanNames

server/internal/oteltest/server_otel_test.go:281–287  ·  view source on GitHub ↗
(spans tracetest.SpanStubs)

Source from the content-addressed store, hash-verified

279}
280
281func spanNames(spans tracetest.SpanStubs) []string {
282 names := make([]string, len(spans))
283 for i, span := range spans {
284 names[i] = span.Name
285 }
286 return names
287}
288
289func findAttributeByKey(attributes []attribute.KeyValue, key attribute.Key) (attribute.Value, bool) {
290 for _, attr := range attributes {

Callers 1

assertTracingSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected