-
Notifications
You must be signed in to change notification settings - Fork 15
Feature: Sampling delegation #59
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
Conversation
BenchmarksBenchmark execution time: 2024-01-12 13:07:37 Comparing candidate commit 9fc8f73 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics. |
d9b880a to
0907717
Compare
0907717 to
e0a5048
Compare
Good idea, I will add that.
I'll do (1) once I've tidied up my PR. Thanks for the review! |
- Protect `struct SamplingDelegation` with a mutex. - Check the result of `finalize_config(config3)` in `test_tracer.cpp`.
Since there were quite a few conflicts, there's a fair bit of restructuring here as well.
dgoffredo
left a comment
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.
These changes look good to me. I've merged in the recommendations from #83, and merged in main.
The merge of main was substantial, so please check whether you're ok with the current state of this PR.
* feat: Set integration informations * run `make format` --------- Co-authored-by: David Goffredo <david.goffredo@datadoghq.com>
This fixes a regression introduced by Sampling Delegation (#59). When the sampling delegation header is present during the trace context extraction, the sampling priority is discarded even if the feature is disabled. This change of behaviour can potentially result in an increase of ingested spans. Additionnally, the tracer should behave as before the introduction of this feature when it is not enabled. Changes: - Sampling priority is not longer discard when `x-datadog-delegate-trace-sampling` is present. - Update sampling delegation tests.
This fixes a regression introduced by Sampling Delegation (#59). When the sampling delegation header is present during the trace context extraction, the sampling priority is discarded even if the feature is disabled. This change of behaviour can potentially result in an increase of ingested spans. Additionnally, the tracer should behave as before the introduction of this feature when it is not enabled. Changes: - Sampling priority is not longer discard when `x-datadog-delegate-trace-sampling` is present. - Update sampling delegation tests.
This fixes a regression introduced by Sampling Delegation (#59). When the sampling delegation header is present during the trace context extraction, the sampling priority is discarded even if the feature is disabled. This change of behaviour can potentially result in an increase of ingested spans. Additionnally, the tracer should behave as before the introduction of this feature when it is not enabled. Changes: - Sampling priority is not longer discard when `x-datadog-delegate-trace-sampling` is present. - Update sampling delegation tests.
This fixes a regression introduced by Sampling Delegation (#59). When the sampling delegation header is present during the trace context extraction, the sampling priority is discarded even if the feature is disabled. This change of behaviour can potentially result in an increase of ingested spans. Additionally, the tracer should behave as before the introduction of this feature when it is not enabled. Changes: - Sampling priority is not longer discard when`x-datadog-delegate-trace-sampling` is present. - Update sampling delegation tests.
How to test
docker compose build --build-arg BRANCH=dmehala/sampling-delegation --no-cache[DD_TRACE_DELEGATE_SAMPLING=<0 or 1>] [DD_API_KEY=<API_KEY>] docker compose up