Fix transaction discarded debug messages by szokeasaurusrex · Pull Request #3002 · getsentry/sentry-python

antonpirker

Base automatically changed from sentry-sdk-2.0 to master

April 25, 2024 09:13
`sampled` being set to `False` is not the only reason why the `_span_recorder` might be `None`. Another explanation is that the transaction was not started via `start_transaction`.
Transactions that are discarded because `_span_recorder` is `None` can also be discarded because they were not started with `sentry_sdk.start_transaction`. This change updates the debug message accordingly.

Fixes GH-3000

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/transaction-sampled-debug-message branch

April 25, 2024 13:40