-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add regexp support to service name include/exclude filters #522
Add regexp support to service name include/exclude filters #522
Conversation
Codecov Report
@@ Coverage Diff @@
## master #522 +/- ##
==========================================
+ Coverage 76.06% 76.24% +0.17%
==========================================
Files 126 126
Lines 7860 7917 +57
==========================================
+ Hits 5979 6036 +57
Misses 1584 1584
Partials 297 297
Continue to review full report at Codecov.
|
bc23ef8
to
76eac4b
Compare
Probably a bit late but we could support regex and exact both with same fields while still making it very explicit and obvious. config:
match: <string_to_match>
config:
match: /<regexp>/ Enclosing the value in Don't know if it's worth doing now but in future if we need to support both regex and exact matches for the feature, we could follow this pattern. I think it'll be intuitive if all components follow the pattern. |
Not too late. Let me explore this. A couple things that are not immediately clear. What happens if I want to strict match a strict that start with a forward slash? Am I forced to use a regexp in that case? Given that forward slash is a URL path component starting character it may be a non-rare case. It may be confusing that adding a forward slash at the beginning of a rule changes the matching rule. Can be unexpected if the user doesn't read the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ccaraman any thoughts on this? ^^^^ |
@tigrannajaryan @ccaraman @owais I like the idea ˆ |
ca66940
to
84d4334
Compare
ae9fa37
to
ac3d7ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one tiny nit
- Added regexp support to service name field in include/exclude filters of attributes processor. This makes it consistent with span name fields which already use regexp patterns. - Added match_type to make service name and span name matching explicit. Testing: added unit and E2E tests. Documentation: README modified as appropriate.
ac3d7ba
to
19efa6d
Compare
) Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.17.0 to 1.18.1. - [Release notes](https://github.com/uber-go/zap/releases) - [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md) - [Commits](uber-go/zap@v1.17.0...v1.18.1) --- updated-dependencies: - dependency-name: go.uber.org/zap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Added regexp support to service name field in include/exclude
filters of attributes processor. This makes it consistent with
span name fields which already use regexp patterns.
Added match_type to make service name and span name matching explicit.
Testing: added unit and E2E tests.
Documentation: README modified as appropriate.