-
Notifications
You must be signed in to change notification settings - Fork 394
Fix sampling rules and sample rate reporting in environment logger #4772
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
Fix sampling rules and sample rate reporting in environment logger #4772
Conversation
Thank you for updating Change log entry section 👏 Visited at: 2025-07-03 02:14:55 UTC |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4772 +/- ##
==========================================
- Coverage 97.54% 97.52% -0.02%
==========================================
Files 1484 1483 -1
Lines 88499 88548 +49
Branches 4588 4594 +6
==========================================
+ Hits 86322 86356 +34
- Misses 2177 2192 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@yuandesu great work! Can you add a changelog entry to the PR description, like it's mentioned in #4772 (comment)? |
@marcotc Thank you for the review! |
BenchmarksBenchmark execution time: 2025-07-04 04:40:32 Comparing candidate commit 2fd1aaf in PR branch Found 1 performance improvements and 1 performance regressions! Performance is the same for 45 metrics, 2 unstable metrics. scenario:profiling - intern_all 1000 repeated strings
scenario:tracing - Tracing.log_correlation
|
/merge |
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
devflow unqueued this merge request: It did not become mergeable within the expected time |
What does this PR do?
tracing.sampling.default_rate
as fallback for sample_ratetracing.sampling.rules
when no sampler is configuredMotivation:
The
sample_rate
andsampling_rules
are null even we configured via env var orDatadog.configure
.dd-trace-rb/docs/GettingStarted.md
Line 2103 in 9266d0a
dd-trace-rb/docs/GettingStarted.md
Line 2105 in 9266d0a
Before:
After:
Change log entry
Yes. Fix sampling rules and sample rate reporting in environment logger.
Additional Notes:
How to test the change?
You can reproduce this issue with the following files.
app.rb
Gemfile
Dockerfile
docker-compose.yaml