(lvl int, keyPath string)
| 1318 | } |
| 1319 | |
| 1320 | func 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 | } |
no outgoing calls
no test coverage detected