MCPcopy
hub / github.com/grafana/tempo / unsafeToString

Function unsafeToString

tempodb/encoding/vparquet4/block_traceql.go:3836–3841  ·  view source on GitHub ↗

unsafeToString casts a byte slice to a string w/o allocating

(b []byte)

Source from the content-addressed store, hash-verified

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

Callers 12

KeepGroupMethod · 0.70
mapEventAttrFunction · 0.70
mapSpanAttrFunction · 0.70
mapInstrumentationAttrFunction · 0.70
mapResourceAttrFunction · 0.70
mapTraceAttrFunction · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected