sampling: update formula#3423
Merged
Merged
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 4480 Passed, 65 Skipped, 3m 50.57s Total Time |
genesor
force-pushed
the
ben.db/APMAPI-1263-adjust-sampling-formula
branch
from
April 14, 2025 11:30
003b7b0 to
94b515d
Compare
BenchmarksBenchmark execution time: 2025-04-14 15:54:46 Comparing candidate commit 4fe7fcb in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 54 metrics, 1 unstable metrics. scenario:BenchmarkSetTagStringer-24
|
genesor
force-pushed
the
ben.db/APMAPI-1263-adjust-sampling-formula
branch
from
April 14, 2025 12:43
94b515d to
c412d5d
Compare
genesor
marked this pull request as ready for review
April 14, 2025 13:56
darccio
approved these changes
Apr 14, 2025
genesor
force-pushed
the
ben.db/APMAPI-1263-adjust-sampling-formula
branch
from
April 14, 2025 15:25
c412d5d to
4fe7fcb
Compare
kakkoyun
approved these changes
Apr 15, 2025
genesor
enabled auto-merge (squash)
April 16, 2025 11:34
7 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The sampling formula has changed a bit to have an consistent one across all tracers. The change is relatively small in Go as it only require a change from
< rate * math.MaxUint64to<= rate * math.MaxUint64Motivation
We are aiming to have consistent sampling over all tracers.
Reviewer's Checklist
golangci-lint runlocally.v2-devbranch and reviewed by @DataDog/apm-go.Unsure? Have a question? Request a review!