-
Notifications
You must be signed in to change notification settings - Fork 377
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
DEBUG-2334 Dynamic Instrumentation Redactor component #3901
Conversation
dd79ae4
to
45d7fe6
Compare
BenchmarksBenchmark execution time: 2024-09-10 20:37:45 Comparing candidate commit 127a2e2 in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 21 metrics, 2 unstable metrics. scenario:profiler - hold / resume
scenario:profiler - sample timeline=false
|
This component determines whether a variable, attribute or hash element should be redacted based on the identifier name/key name and the type of the value. Unit tests are included. The Redactor component technically depends on DI settings but they are mocked out in the unit tests.
45d7fe6
to
f25e6f1
Compare
Test cases checked against DataDog/libdatadog#497. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3901 +/- ##
========================================
Coverage 97.86% 97.87%
========================================
Files 1279 1281 +2
Lines 76520 76620 +100
Branches 3747 3753 +6
========================================
+ Hits 74890 74992 +102
+ Misses 1630 1628 -2 ☔ View full report in Codecov by Sentry. |
* Dynamic Instrumentation Redactor component This component determines whether a variable, attribute or hash element should be redacted based on the identifier name/key name and the type of the value. Unit tests are included. The Redactor component technically depends on DI settings but they are mocked out in the unit tests. * add non-ascii test cases * style --------- Co-authored-by: Oleg Pudeyev <code@olegp.name>
What does this PR do?
Adds Dynamic Instrumentation Redactor
This component determines whether a variable, attribute or hash element should be redacted based on the identifier name/key name and the type of the value.
Motivation:
Initial implementation of Dynamic Instrumentation for Ruby
Additional Notes:
The Redactor component technically depends on DI settings but they are mocked out in the unit tests.
How to test the change?
Unit tests are included.