Skip to content

Commit

Permalink
match spans on instrumentation library
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Sep 15, 2020
1 parent a2aa818 commit 3f865ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/processor/filterspan/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ type MatchProperties struct {
Services []string `mapstructure:"services"`

// Resources specify the list of items to match the resources against.
// A match occurs if the span's service name matches at least one item in this list.
// A match occurs if the span's resources matches at least one item in this list.
// This is an optional field.
Resources []Attribute `mapstructure:"resource"`

// Libraries specify the list of items to match the implementation library against.
// A match occurs if the span's implementation library matches at least one item in this list.
// This is an optional field.
Libraries []InstrumentationLibrary `mapstructure:"libraries"`

// SpanNames specify the list of items to match span name against.
Expand All @@ -105,6 +108,7 @@ type Attribute struct {
Value interface{} `mapstructure:"value"`
}

// InstrumentationLibrary specifies the instrumentation library and optional version to match against.
type InstrumentationLibrary struct {
Name string `mapstructure:"name"`
// version match
Expand Down

0 comments on commit 3f865ac

Please sign in to comment.