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

Method Matches

pkg/spanfilter/policymatch/intrinsic.go:22–32  ·  view source on GitHub ↗

Matches returns true if the given span matches the policy.

(span *tracev1.Span)

Source from the content-addressed store, hash-verified

20
21// Matches returns true if the given span matches the policy.
22func (p *IntrinsicPolicyMatch) Matches(span *tracev1.Span) bool {
23 if len(p.filters) == 0 {
24 return true
25 }
26 for _, attr := range p.filters {
27 if !attr.Matches(span) {
28 return false
29 }
30 }
31 return true
32}
33
34// IntrinsicFilter is a filter that matches spans based on their intrinsic attributes.
35type IntrinsicFilter struct {

Callers

nothing calls this directly

Calls 1

MatchesMethod · 0.45

Tested by

no test coverage detected