(e entry)
| 1305 | } |
| 1306 | |
| 1307 | func mapTraceAttr(e entry) traceql.Static { |
| 1308 | switch e.Key { |
| 1309 | case columnPathTraceID, columnPathEndTimeUnixNano, columnPathStartTimeUnixNano: // No TraceQL intrinsics for these |
| 1310 | case columnPathDurationNanos: |
| 1311 | return traceql.NewStaticDuration(time.Duration(e.Value.Int64())) |
| 1312 | case columnPathRootSpanName: |
| 1313 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1314 | case columnPathRootServiceName: |
| 1315 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1316 | } |
| 1317 | return traceql.NewStaticNil() |
| 1318 | } |
| 1319 | |
| 1320 | func scopeFromDefinitionLevel(lvl int, keyPath string) traceql.AttributeScope { |
| 1321 | switch lvl { |
nothing calls this directly
no test coverage detected