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

Function NewStaticString

pkg/traceql/ast.go:687–692  ·  pkg/traceql/ast.go::NewStaticString
(s string)

Source from the content-addressed store, hash-verified

685}
686
687func NewStaticString(s string) Static {
688 return Static{
689 Type: TypeString,
690 valBytes: unsafe.Slice(unsafe.StringData(s), len(s)),
691 }
692}
693
694func NewStaticBool(b bool) Static {
695 var val uint64

Callers 15

KeepGroupMethod · 0.92
mapEventAttrFunction · 0.92
mapSpanAttrFunction · 0.92
mapInstrumentationAttrFunction · 0.92
mapResourceAttrFunction · 0.92
mapTraceAttrFunction · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
KeepGroupMethod · 0.92

Calls

no outgoing calls

Tested by 15

TestCoalesceConditionsFunction · 0.74
flattenForSelectAllFunction · 0.74
TestCoalesceConditionsFunction · 0.74
TestSpanPoolReleaseFunction · 0.74
TestSpansetPoolReleaseFunction · 0.74
TestEventPoolReleaseFunction · 0.74
TestLinkPoolReleaseFunction · 0.74
flattenForSelectAllFunction · 0.74