-
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
match spans on resource attributes #929
Conversation
Hey, why was this closed in favor of the RewritableTracer? One could argue that it is more efficient to leave the logic to drop sensitive attributes in here after sampling the traces, instead of redacting every single span in the RewritableTracer... |
|
@zeitlinger do you intend to continue working on this draft PR? |
@tigrannajaryan it's still pending the coutcome of #928 - but since this isn't moving - I'm going to separate the 2 PRs now. |
04c950e
to
e4ee609
Compare
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
==========================================
+ Coverage 92.03% 92.06% +0.03%
==========================================
Files 259 259
Lines 17584 17605 +21
==========================================
+ Hits 16183 16208 +25
+ Misses 992 990 -2
+ Partials 409 407 -2
Continue to review full report at Codecov.
|
this is finished, please give your feedback. Also see the discussion in #928 (comment) |
e4ee609
to
4073594
Compare
@zeitlinger please rebase, I will review after :). Sorry for the delay. |
4073594
to
7f03f77
Compare
|
7f03f77
to
239fca8
Compare
np, also took me a while after all the refactorings in this area. |
allow regexp on attribute value if it is a string
239fca8
to
044f5a4
Compare
@zeitlinger do you plan to continue working on this PR (it shows as "draft" now)? |
The idea was to collect feedback and then add more documentation. I'll remove the draft status, as it caused confusion. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
* Prepare for releasing v0.8.0 * Update Changelog * Update Changelog
* Update changelog for v0.38.0 release * Update CHANGELOG.md Co-authored-by: Ryan Fitzpatrick <[email protected]> Co-authored-by: Ryan Fitzpatrick <[email protected]>
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.
Note:
This is a prototype to discuss the feature.
More tests, example config, and documentation will be added later.