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

Make DSC and trace_context work for outgoing traces #3566

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

sl0thentr0py
Copy link
Member

@sl0thentr0py sl0thentr0py commented Sep 24, 2024

  • Add parsed baggage sentry items as items on the sampling_context.trace_state in continue_trace
  • Fix sampler to propagate the trace_state to children in both sampled and dropped cases
  • make iter_headers work
  • make get_trace_context work
  • add dynamic_sampling_context in trace_context so that it can be picked up by the client and added in the envelope header

closes #3478, #3565


Example trace using JS -> Python -> Rails

image

django headers
image

rails headers
image

dsc on envelope in django transaction
image

* Add parsed baggage sentry items as items on the `sampling_context.trace_state` in
  `continue_trace`
* Fix sampler to propagate the `trace_state` to children in both sampled
  and dropped cases
* make `iter_headers` work
* make `get_trace_context` work
* add `dynamic_sampling_context` in `trace_context` so that it can be
  picked up by the client and added in the envelope header
Copy link

codecov bot commented Sep 24, 2024

❌ 2880 Tests Failed:

Tests completed Failed Passed Skipped
16677 2880 13797 1445
View the top 2 failed tests by shortest run time
 tests.integrations.cohere.test_cohere
Stack Traces | 0s run time
No failure message available
tests.integrations.clickhouse_driver.test_clickhouse_driver test_clickhouse_dbapi_spans
Stack Traces | 0s run time
No failure message available
View the full list of 1 ❄️ flaky tests
tests.integrations.clickhouse_driver.test_clickhouse_driver test_clickhouse_client_spans

Flake rate in main: 100.00% (Passed 0 times, Failed 266 times)

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

@sl0thentr0py sl0thentr0py changed the title Make DSC work for outgoing traces Make DSC and trace_context work for outgoing traces Sep 24, 2024
@sl0thentr0py sl0thentr0py merged commit 0d60d45 into potel-base Sep 26, 2024
10 of 108 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/potel/dsc branch September 26, 2024 15:01
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