Skip to content

Commit

Permalink
fix(perf): Update examples to new python api (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jul 3, 2020
1 parent 57c4914 commit ab41434
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import sentry_sdk
while True:
item = get_from_queue()

with sentry_sdk.start_span(op="task", transaction=item.get_transaction()):
with sentry_sdk.start_transaction(op="task", name=item.get_transaction_name()):
# process_item may create more spans internally (see next examples)
process_item(item)
```
Expand Down

0 comments on commit ab41434

Please sign in to comment.