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

Function scopeFromDefinitionLevel

tempodb/encoding/vparquet4/block_autocomplete.go:1320–1338  ·  view source on GitHub ↗
(lvl int, keyPath string)

Source from the content-addressed store, hash-verified

1318}
1319
1320func scopeFromDefinitionLevel(lvl int, keyPath string) traceql.AttributeScope {
1321 switch lvl {
1322 case DefinitionLevelResourceSpansILSSpanAttrs:
1323 return traceql.AttributeScopeSpan
1324 case DefinitionLevelResourceAttrs:
1325 return traceql.AttributeScopeResource
1326 case DefinitionLevelInstrumentationScopeAttrs:
1327 return traceql.AttributeScopeInstrumentation
1328 case DefinitionLevelResourceSpansILSSpanEventAttrs:
1329 switch keyPath {
1330 case columnPathEventAttrKey:
1331 return traceql.AttributeScopeEvent
1332 default: // columnPathLinkAttrKey
1333 return traceql.AttributeScopeLink
1334 }
1335 default:
1336 return traceql.AttributeScopeNone
1337 }
1338}

Callers 2

keyNameIteratorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected