Skip to content

ref(asgi): Remove transaction_style parameter - #7796

Open
alexander-alderman-webb wants to merge 5 commits into
major/3.0from
webb/litestar/transaction-style
Open

alexander-alderman-webb wants to merge 5 commits into
major/3.0from
webb/litestar/transaction-style

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Remove the transaction_style parameter from all integrations that rely on SentryAsgiMiddleware, inlining the branches that set the route template as the segment name (i.e., transaction_style="url").

Issues

Closes #7765
Closes #7760
Closes #7762
Closes #7759
Closes #7762

Reminders

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 57939 passed | ❌ 2 failed | ⏭️ 2709 skipped | Total: 60650 | Pass Rate: 95.53% | Execution Time: 162m 11s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -76406
Passed Tests 📉 -71895
Failed Tests —
Skipped Tests 📉 -4511

➕ New Tests (2)

View new tests
  • test_input_attributes_nonstreaming_chat[messages0-expected_system_instructions0-expected_input_messages0]
    • File: tests.integrations.mistral.test_mistral
    • Status: ❌ Failing
  • test_async_transport_rate_limiting_with_concurrency
    • File: tests.test_transport
    • Status: ❌ Failing

➖ Removed Tests (1)

View removed tests
  • test_binary_content_encoding_image_url[True-False]
    • File: tests.integrations.litellm.test_litellm

❌ Failed Tests

test_input_attributes_nonstreaming_chat[messages0-expected_system_instructions0-expected_input_messages0]

File: tests.integrations.mistral.test_mistral
Suite: py3.10-mistral-v2.6.0
Error: KeyError: 140226338545664

Stack Trace
tests/integrations/mistral/test_mistral.py:389: in test_input_attributes_nonstreaming_chat
    sentry_init(
tests/conftest.py:349: in inner
    client = sentry_sdk.Client(*a, **kw)
sentry_sdk/client.py:278: in __init__
    self._init_impl()
sentry_sdk/client.py:428: in _init_impl
    self.integrations = setup_integrations(
sentry_sdk/integrations/__init__.py:217: in setup_integrations
    for integration_cls in iter_default_integrations(
sentry_sdk/integrations/__init__.py:44: in iter_default_integrations
    yield getattr(import_module(module), cls)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1024: in _find_and_load
    ???
<frozen importlib._bootstrap>:171: in __enter__
    ???
<frozen importlib._bootstrap>:123: in acquire
    ???
E   KeyError: 140226338545664

test_async_transport_rate_limiting_with_concurrency

File: tests.test_transport
Suite: py3.8-common
Error: AssertionError: assert False is True + where False = _check_disabled('error') + where _check_disabled = <sentry_sdk.transport.AsyncHttpTransport object at 0x7ffbde04a700>._check_disabled + where <sentry_sdk.transport.AsyncHttpTransport object at 0x7ffbde04a700> = <sentry_sdk.client._Client object at 0x7ffbb4f77d60>.transport

Stack Trace
tests/test_transport.py:1037: in test_async_transport_rate_limiting_with_concurrency
    assert client.transport._check_disabled("error") is True
E   AssertionError: assert False is True
E    +  where False = _check_disabled('error')
E    +    where _check_disabled = <sentry_sdk.transport.AsyncHttpTransport object at 0x7ffbde04a700>._check_disabled
E    +      where <sentry_sdk.transport.AsyncHttpTransport object at 0x7ffbde04a700> = <sentry_sdk.client._Client object at 0x7ffbb4f77d60>.transport

✅ Patch coverage is 100.00%. Project has 2059 uncovered lines.
❌ Project coverage is 90.1%. Comparing base (629f642) to head (29b1cb3).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.34%    90.10%    -0.24%
==========================================
  Files          199       179       -20
  Lines        26524     20790     -5734
  Branches      9864      7310     -2554
==========================================
+ Hits         23962     18731     -5231
- Misses        2562      2059      -503
- Partials      1495      1213      -282

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/litestar/transaction-style branch 5 times, most recently from 22b0660 to baaf852 Compare October 1, 2026 07:49
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review October 1, 2026 07:55
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner October 1, 2026 07:55
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/litestar/transaction-style branch from baaf852 to 42ca897 Compare October 1, 2026 07:58
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/litestar/transaction-style branch from 42ca897 to 7b6c588 Compare October 1, 2026 08:00

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread sentry_sdk/integrations/asgi.py
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as draft October 1, 2026 08:11

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ab325ea. Configure here.

Comment thread sentry_sdk/integrations/asgi.py Outdated
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/litestar/transaction-style branch from ab325ea to cecb870 Compare October 1, 2026 08:15
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review October 1, 2026 08:18

This branch has not been deployed

No deployments
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.

1 participant