(e entry)
| 1060 | } |
| 1061 | |
| 1062 | func mapTraceAttr(e entry) traceql.Static { |
| 1063 | switch e.Key { |
| 1064 | case columnPathTraceID, columnPathEndTimeUnixNano, columnPathStartTimeUnixNano: // No TraceQL intrinsics for these |
| 1065 | case columnPathDurationNanos: |
| 1066 | return traceql.NewStaticDuration(time.Duration(e.Value.Int64())) |
| 1067 | case columnPathRootSpanName: |
| 1068 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1069 | case columnPathRootServiceName: |
| 1070 | return traceql.NewStaticString(unsafeToString(e.Value.ByteArray())) |
| 1071 | } |
| 1072 | return traceql.NewStaticNil() |
| 1073 | } |
| 1074 | |
| 1075 | func scopeFromDefinitionLevel(lvl int) traceql.AttributeScope { |
| 1076 | switch lvl { |
nothing calls this directly
no test coverage detected