Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ddtrace/tracer: removed dependency between discovery flag and single …
…span sampling Previously span sampling was executed if stats in the tracer were enabled, that is the "discovery" flag was on. This dependency was removed and more tests added Also, client_dropped_with_single_spans:stats_enabled : span priority <= 0, ( client-stats enabled). Expected result: send only the single span sampled spans client_dropped_with_single_spans:stats_disabled. span priority <= 0, ( client-stats disabled). Expected result: send everything but mark single span sampled spans client_dropped_with_single_span_rules tests if behaviour is as expected with sampling rules that don't match spans client_kept_with_single_spans makes sure we only run on dropped traces single_spans_with_max_per_second (trace rate: 0.8, span rule: rate:1, max_per_second: 50). Tests that we sample no more than [0.8 + 0.2*1( but max 50 spans)] spans single_spans_without_max_per_second x2 - testing sampling rates (traceRate : 0.8, spanRate : 0.5)
- Loading branch information
1 parent
b1c702e
commit 7748843
Showing
7 changed files
with
281 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.