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

Method WithSpanString

pkg/traceql/ast_test.go:975–978  ·  view source on GitHub ↗
(key string, value string)

Source from the content-addressed store, hash-verified

973}
974
975func (m *mockSpan) WithSpanString(key string, value string) *mockSpan {
976 m.attributes[NewScopedAttribute(AttributeScopeSpan, false, key)] = NewStaticString(value)
977 return m
978}
979
980func (m *mockSpan) WithSpanInt(key string, value int) *mockSpan {
981 m.attributes[NewScopedAttribute(AttributeScopeSpan, false, key)] = NewStaticInt(value)

Calls 2

NewScopedAttributeFunction · 0.85
NewStaticStringFunction · 0.85

Tested by

no test coverage detected