unsafeToString casts a byte slice to a string w/o allocating
(b []byte)
| 3944 | |
| 3945 | // unsafeToString casts a byte slice to a string w/o allocating |
| 3946 | func unsafeToString(b []byte) string { |
| 3947 | if len(b) == 0 { |
| 3948 | return "" |
| 3949 | } |
| 3950 | return unsafe.String(unsafe.SliceData(b), len(b)) |
| 3951 | } |
| 3952 | |
| 3953 | func otlpStatusToTraceqlStatus(v uint64) traceql.Status { |
| 3954 | // Map OTLP status code back to TraceQL enum. |
no test coverage detected