Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5179f60
Choose a base ref
...
head repository: getsentry/sentry-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 653a292
Choose a head ref
  • 12 commits
  • 107 files changed
  • 8 contributors

Commits on Jul 16, 2026

  1. Configuration menu
    Copy the full SHA
    a7bb857 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfe242e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    00224f7 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2026

  1. Configuration menu
    Copy the full SHA
    9996734 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2026

  1. test: Add streaming tests to test_http_headers (#6785)

    ### Description
    Add span streaming variants to tests in `test_http_headers`
    
    
    #### Issues
    Part of #5395
    
    #### Reminders
    - Please add tests to validate your changes, and lint your code using
    `uv run ruff`.
    - Add GH Issue ID _&_ Linear ID (if applicable)
    - PR title should use [conventional
    commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
    style (`feat:`, `fix:`, `ref:`, `meta:`)
    - For external contributors:
    [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
    [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
    community](https://discord.gg/Ww9hbqr)
    sentrivana authored Jul 20, 2026
    Configuration menu
    Copy the full SHA
    2e09497 View commit details
    Browse the repository at this point in the history
  2. ref: Use old sampling context format in span streaming (#6848)

    ### Description
    Reverting `sampling_context` to look like it used to in
    transaction-based tracing.
    
    Caveat: There's a bunch of keys that are not populated in span
    streaming, mostly because they're not known at span start (`span_id`,
    `sampled`, etc.). I've kept them in as `None` as that's how the legacy
    path did it, too (rather than omitting them).
    
    Note: When bumping the sdk version in sentry and seer to a version that
    has this change, the sampling_context code needs to change there, too.
    
    #### Issues
    resolves #6846
    
    #### Reminders
    - Please add tests to validate your changes, and lint your code using
    `uv run ruff`.
    - Add GH Issue ID _&_ Linear ID (if applicable)
    - PR title should use [conventional
    commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
    style (`feat:`, `fix:`, `ref:`, `meta:`)
    - For external contributors:
    [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
    [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
    community](https://discord.gg/Ww9hbqr)
    sentrivana authored Jul 20, 2026
    Configuration menu
    Copy the full SHA
    17e0348 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2026

  1. ref: Use top-level trace_lifecycle and ignore_spans options in te…

    …sts (#6855)
    
    ## Summary
    - Replaced all `_experiments={"trace_lifecycle": ...}` with top-level
    `trace_lifecycle=...` across 77 test files
    - Replaced `_experiments={"ignore_spans": ...}` with top-level
    `ignore_spans=...`
    - Kept backwards-compat tests in `test_client.py` and
    `test_span_streaming.py` that specifically verify `_experiments` still
    works and that top-level takes precedence
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    sentrivana and claude authored Jul 21, 2026
    Configuration menu
    Copy the full SHA
    b5171b7 View commit details
    Browse the repository at this point in the history
  2. fix(tracing): handle exceptions raised within traces_sampler and othe…

    …r callbacks (#6853)
    
    When a user-provided traces_sampler callback raises, catch the
    exception,
    log a warning, and fall back to the parent sample rate or the configured
    traces_sample_rate instead of propagating the error.
    
    Wrap the before_send callback invocation in
    capture_internal_exceptions()
    so that exceptions raised by user-provided before_send_log,
    before_send_metric, and before_send_span callbacks do not crash the
    application. When a callback raises, the original, unmodified telemetry
    item is sent.
    
    Fixes PY-2617
    Fixes #6850
    ericapisani authored Jul 21, 2026
    Configuration menu
    Copy the full SHA
    3a50950 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. ref(tracing): No-op and emit warning in start_transaction with the …

    …streaming trace lifecycle (#6845)
    
    Add to `Scope.start_transaction()` the same deprecation warning emitted by `Scope.start_span()`, and no-op when the function is used together with the streaming trace lifecycle.
    
    Update tests that incorrectly assert on transactions while that lifecycle is enabled.
    alexander-alderman-webb authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    2e9f26e View commit details
    Browse the repository at this point in the history
  2. fix(tracing): Stop setting NoOpSpan on scope in the streaming trace…

    … lifecycle (#6844)
    
    Do not set transaction-based spans on the scope when the streaming trace lifecycle is enabled. Early returns in `start_span()` and `start_transaction()` return a `NoOpSpan`, whose `__enter__()` and `__exit__()` methods still mutate the scope.
    alexander-alderman-webb authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    4524b65 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e20c226 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    653a292 View commit details
    Browse the repository at this point in the history
Loading