(e entry)
| 1364 | } |
| 1365 | |
| 1366 | func mapTraceAttr(e entry) traceql.Static { |
| 1367 | switch e.Key { |
| 1368 | case columnPathTraceID, columnPathEndTimeUnixNano, columnPathStartTimeUnixNano: // No TraceQL intrinsics for these |
| 1369 | case columnPathDurationNanos: |
| 1370 | return traceql.NewStaticDuration(time.Duration(e.Value.Int64())) |
| 1371 | case columnPathRootSpanName: |
| 1372 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1373 | case columnPathRootServiceName: |
| 1374 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1375 | } |
| 1376 | return traceql.NewStaticNil() |
| 1377 | } |
| 1378 | |
| 1379 | func scopeFromDefinitionLevel(lvl int, keyPath string) traceql.AttributeScope { |
| 1380 | switch lvl { |
nothing calls this directly
no test coverage detected