unsafeToString casts a byte slice to a string w/o allocating
(b []byte)
| 3834 | |
| 3835 | // unsafeToString casts a byte slice to a string w/o allocating |
| 3836 | func unsafeToString(b []byte) string { |
| 3837 | if len(b) == 0 { |
| 3838 | return "" |
| 3839 | } |
| 3840 | return unsafe.String(unsafe.SliceData(b), len(b)) |
| 3841 | } |
| 3842 | |
| 3843 | func otlpStatusToTraceqlStatus(v uint64) traceql.Status { |
| 3844 | // Map OTLP status code back to TraceQL enum. |
no test coverage detected