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

Function unsafeToString

tempodb/encoding/vparquet5/block_traceql.go:3946–3951  ·  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

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

Callers 14

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