Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

Fixes #3000

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transaction-sampled-debug-message branch 2 times, most recently from e79e16d to a090a5c Compare April 22, 2024 16:00
@szokeasaurusrex szokeasaurusrex linked an issue Apr 22, 2024 that may be closed by this pull request
Copy link
Contributor

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

looking good!

Base automatically changed from sentry-sdk-2.0 to master April 25, 2024 09:13
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transaction-sampled-debug-message branch 2 times, most recently from f8586eb to d0fc544 Compare April 25, 2024 13:12
`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 force-pushed the szokeasaurusrex/transaction-sampled-debug-message branch from d0fc544 to 534a301 Compare April 25, 2024 13:26
@szokeasaurusrex szokeasaurusrex merged commit 534a301 into master Apr 25, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/transaction-sampled-debug-message branch April 25, 2024 13:40
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.

Improve debug message when dropping transaction

3 participants