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

Method HasAttribute

pkg/traceql/storage.go:121–134  ·  view source on GitHub ↗
(a Attribute)

Source from the content-addressed store, hash-verified

119}
120
121func (f *FetchSpansRequest) HasAttribute(a Attribute) bool {
122 for _, cc := range f.Conditions {
123 if cc.Attribute == a {
124 return true
125 }
126 }
127 for _, cc := range f.SecondPassConditions {
128 if cc.Attribute == a {
129 return true
130 }
131 }
132
133 return false
134}
135
136func (f *FetchSpansRequest) SecondPassHasAttribute(a Attribute) bool {
137 for _, cc := range f.SecondPassConditions {

Callers 4

extractConditionsMethod · 0.80
extractConditionsMethod · 0.80
extractConditionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected