-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match spans against the instrumentation library and resource attribut…
…es (#928) ### Add the possibility to match spans against the instrumentation library. This is how it works: ``` // version match // expected actual match // nil <blank> yes // nil 1 yes // <blank> <blank> yes // <blank> 1 no // 1 <blank> no // 1 1 yes ``` You can decide to match against all versions (expected = `nil`), a specific version (e.g. expected = `1`), or against "version not provided" (expected = `<blank>`). ### match spans on resource attributes Use case: drop attribute values (e.g. a password) for a certain version (`host.image.version`) ### allow regexp when matching attribute value if it is a string Regular expressions should only be prohibited if the expected value is not a string (because an implicit conversion to string would be unexpected). If the expected value is a string, then a regular expression should be allowed.
- Loading branch information
1 parent
691ba50
commit 393e98f
Showing
15 changed files
with
586 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tested in filterspan package |
Oops, something went wrong.