Skip to content

Commit ab41434

Browse files
authored
fix(perf): Update examples to new python api (#1841)
1 parent 57c4914 commit ab41434

File tree

1 file changed

+1
-1
lines changed
  • src/collections/_documentation/performance-monitoring/configuration

1 file changed

+1
-1
lines changed

src/collections/_documentation/performance-monitoring/configuration/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import sentry_sdk
7575
while True:
7676
item = get_from_queue()
7777

78-
with sentry_sdk.start_span(op="task", transaction=item.get_transaction()):
78+
with sentry_sdk.start_transaction(op="task", name=item.get_transaction_name()):
7979
# process_item may create more spans internally (see next examples)
8080
process_item(item)
8181
```

0 commit comments

Comments
 (0)