-
Notifications
You must be signed in to change notification settings - Fork 469
feat(tracing): lazy sampling #8308
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
Merged
Merged
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
8287871
fix history
ZStriker19 cf4f3ee
fix botocore tests due to missing tracer pass in
ZStriker19 8d8efb3
sample before dbm propagation
ZStriker19 4d9b315
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 5b571e6
just import tracer into propagator rather than pass in at integration…
ZStriker19 a19b577
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 65def8b
chore(trace): handle import of ddtrace.tracer
majorgreys 67784e9
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 62e80ec
Merge branch 'majorgreys/fix-ddtrace-tracer-import' into zachg/extend…
ZStriker19 5c41da7
change tracer import
ZStriker19 b0767ad
sample correctly before database propagation
ZStriker19 b3c9353
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 fbfaabd
add span into inject for httppropagator
ZStriker19 4bb7b17
update tags in sampler
ZStriker19 ae58cb7
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 3dcbfa2
fix dbm inject to sample before generating comment
ZStriker19 60789ee
fix remote config updating sampler when resetting to user original se…
ZStriker19 7434573
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 33f1777
run sampler before generating dbm comments in tests
ZStriker19 d7f0f8d
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 b087291
fix otel tests
ZStriker19 6629dac
fix merge conflict
ZStriker19 840564b
fix tests after merge of .sampled change and fix otel context test
ZStriker19 7dfc689
run sampler before forking in integration-snapshot tests
ZStriker19 b38d646
fix logic for openai checking if sampled
ZStriker19 7e873ba
fix other integration_snapshot test by sampling before forking
ZStriker19 1d70f3a
if HTTPPropagator.inject called without span, get current root span t…
ZStriker19 4350138
use setter for tracer._sampler to always update the processor that us…
ZStriker19 4567753
sample before forking
ZStriker19 299b77e
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 f2beeea
add before fork sampling
ZStriker19 efcf424
manually sample before multiprocessing.Process tests
ZStriker19 bfc0c63
check if there is an active span before calling sample for fork
ZStriker19 bba6b97
make sure we check that sampling has not already run, before trying t…
ZStriker19 570acc3
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 fab0b27
check that context.sampling_priority is None, not just is
ZStriker19 d547f54
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 05d819a
update propagation tests where sampling runs due to inject now
ZStriker19 b4d624c
fix merge conflic in forksafe
ZStriker19 0a7ec87
default to span being sampled when sampling has yet to run for appsec
ZStriker19 7799193
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 ccc56fd
first run at rn and docs updates
ZStriker19 f061878
change popen snapshot and test names, add flakey fork test
ZStriker19 568ad31
clean up
ZStriker19 1be0fb8
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 e24e9ba
add to rn
ZStriker19 68e32c8
fix merge conflict
ZStriker19 d762f74
fix merge conflict
ZStriker19 b2b02cd
fix merge conflict now that tracer.sampler is public
ZStriker19 6090cea
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 af8e17e
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 3807fcb
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 f85789a
fix merge conflict
ZStriker19 c0ee71e
decrease flakiness of test_priority_sampling tets
ZStriker19 0e4881b
decrease flakiness of test_settings tests
ZStriker19 f4998d5
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 40cd8b2
add wrong_metric_types snapshot that must've been missed in merge con…
ZStriker19 0b43db8
fix flakey extended sampling snapshot test
ZStriker19 a311d0b
remove flakey snapshot directly calling fork after realizing pOpen te…
ZStriker19 b07e402
decrease flakiness of propagation multispan test
ZStriker19 2cfc44e
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 7b13543
Merge branch 'main' into zachg/test_lazy_against_updated_system-tests
ZStriker19 8d563c5
Update releasenotes/notes/lazy_sampling-93057adeaccbb46f.yaml
ZStriker19 5e824a0
Update ddtrace/propagation/http.py
ZStriker19 94534c9
Update docs/advanced_usage.rst
ZStriker19 f5e0163
Update ddtrace/contrib/elasticsearch/patch.py
ZStriker19 c916d22
Update ddtrace/contrib/algoliasearch/patch.py
ZStriker19 b4e4106
Update docs/advanced_usage.rst
ZStriker19 bff056a
Update ddtrace/_trace/processor/__init__.py
ZStriker19 3164297
update before fork naming
ZStriker19 ebfc350
Update ddtrace/propagation/http.py
ZStriker19 6100df4
simplify telemetry config items return
ZStriker19 eb7fe91
remove uneeded method to update tags in processor, update tags in sam…
ZStriker19 dfeb2cb
update system-tests ref
ZStriker19 a80df8b
Update ddtrace/_trace/tracer.py
ZStriker19 bd07f2d
nit
ZStriker19 4838639
change otel propagation test to test automatic sampling and injection
ZStriker19 9628a9c
merge tracer.sample PR and remove span from inject signature
ZStriker19 1fc48f3
clean up
ZStriker19 070ee9b
add test for changing tracer's sampler also changes the processor's s…
ZStriker19 50ff37d
clean up
ZStriker19 4827e90
Merge branch 'zachg/extended_sampling_api' into zachg/test_lazy_again…
ZStriker19 ebb1e22
refactor forksafe hook running code
ZStriker19 416b2c0
Merge branch 'zachg/extended_sampling_api' into zachg/test_lazy_again…
ZStriker19 0e6cd3e
Merge branch 'main' into zachg/test_lazy_against_updated_system-tests
ZStriker19 15328e0
more forksafe refactoring
ZStriker19 1da9cc7
more forksafe refactoring
ZStriker19 2df6f37
add span arg back to inject method
ZStriker19 d9d1a4b
Merge branch 'zachg/extended_sampling_api' into zachg/test_lazy_again…
ZStriker19 24b05fc
refactor span sampling span processor into tracesampling processor so…
ZStriker19 f024603
add logic for picking root_span in inject method
ZStriker19 72b33ba
reset system-tests run to target main
ZStriker19 312b7d0
switch out spansampling processor for tracesamplingprocessor in tests
ZStriker19 d361632
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 ae5d4dd
cover Munir's nits and comments
ZStriker19 3ccd8ae
add special casing for floats that have non-zero decimal
ZStriker19 689c593
add special float case tests
ZStriker19 1419524
fix forksafe for profiling by copying list
ZStriker19 8bee0a8
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 3659dab
Update ddtrace/propagation/http.py
ZStriker19 056a146
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 860f4ee
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 16ee92a
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 98994f1
Update docs/advanced_usage.rst
ZStriker19 6797470
Merge branch 'main' into zachg/extended_sampling_api
ZStriker19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.