Sample on root span level by sentrivana · Pull Request #3767 · getsentry/sentry-python · GitHub
Skip to content

Sample on root span level - #3767

Merged
sentrivana merged 13 commits into
potel-basefrom
ivana/potel/fix-sampler
Nov 14, 2024
Merged

sentrivana merged 13 commits into
potel-basefrom
ivana/potel/fix-sampler

Conversation

@sentrivana

@sentrivana sentrivana commented Nov 13, 2024

Copy link
Copy Markdown
Contributor
  • for spans that have a local parent (i.e., non-root spans/transactions), just inherit the sampling decision from the parent
  • update some tests

Closes #3766

@codecov

codecov Bot commented Nov 13, 2024

Copy link
Copy Markdown

Comment thread sentry_sdk/tracing.py Outdated
Comment thread sentry_sdk/integrations/opentelemetry/sampler.py Outdated
Comment thread sentry_sdk/tracing.py Outdated
@sentrivana

Copy link
Copy Markdown
Contributor Author

@sl0thentr0py Removed parent_sampled and updated the tests a bit more, please recheck

Comment thread tests/tracing/test_sampling.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test should mirror the one above where you added the continue_trace

@sentrivana
sentrivana merged commit ff7e134 into potel-base Nov 14, 2024
@sentrivana
sentrivana deleted the ivana/potel/fix-sampler branch November 14, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants