Skip to content
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

Fix broken sampler after backpressure change #3702

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

sl0thentr0py
Copy link
Member

No description provided.

@sl0thentr0py sl0thentr0py merged commit 8b875c1 into potel-base Oct 28, 2024
16 of 109 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/fix-broken-sampler branch October 28, 2024 13:28
Copy link
Member

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

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

lgtm, but see nit

@@ -68,10 +68,11 @@ def dropped_result(parent_span_context, attributes, sample_rate=None):
else:
reason = "sample_rate"

client.transport.record_lost_event(reason, data_category="transaction")
if client.transport and has_tracing_enabled(client.options):
Copy link
Member

Choose a reason for hiding this comment

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

Should we explicitly check against None?

Copy link
Member Author

Choose a reason for hiding this comment

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

we do this everywhere it's fine

Copy link

codecov bot commented Oct 28, 2024

❌ 2796 Tests Failed:

Tests completed Failed Passed Skipped
20344 2796 17548 4476
View the top 3 failed tests by shortest run time
 tests.integrations.redis.test_redis
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_middleware_callback_spans
Stack Traces | 0s run time
No failure message available
tests.integrations.litestar.test_litestar test_middleware_callback_spans
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

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