Skip to content

Commit bac9b22

Browse files
Updates queues instrumentation for python to use transaction set status
1 parent b11ece5 commit bac9b22

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/python/tracing/instrumentation/custom-instrumentation

1 file changed

+1
-1
lines changed

docs/platforms/python/tracing/instrumentation/custom-instrumentation/queues-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ To start capturing performance metrics, use the `sentry_sdk.start_span()` functi
8383

8484
Your `queue.process` span must exist inside a transaction in order to be recognized as a consumer span. If you are using a <PlatformLink to="/integrations/#web-frameworks">supported web framework</PlatformLink>, the transaction is created by the integration. If you use plain Python, you can start a new one using `sentry_sdk.start_transaction()`.
8585

86-
Use `sentry_sdk.continue_trace()` to connect your consumer spans to their associated producer spans, and `span.set_status()` to mark the trace of your message as success or failed.
86+
Use `sentry_sdk.continue_trace()` to connect your consumer spans to their associated producer spans, and `transaction.set_status()` to mark the trace of your message as success or failed.
8787

8888

8989
```python

0 commit comments

Comments
 (0)