Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements queues module #2953

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions sentry_sdk/integrations/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ def apply_async(*args, **kwargs):

task = args[0]

from pprint import pprint
print("######### args #############")
pprint(args)
print("######### kwargs #############")
pprint(kwargs)
# TODO: this is the producer side. here we can add data from args/kwargs to the span.
span_mgr = (
hub.start_span(op=OP.QUEUE_SUBMIT_CELERY, description=task.name)
if not task_started_from_beat
Expand Down Expand Up @@ -274,6 +280,13 @@ def _inner(*args, **kwargs):
if transaction is None:
return f(*args, **kwargs)

from pprint import pprint
print("######### args #############")
pprint(args)
print("######### kwargs #############")
pprint(kwargs)
# TODO: this is where the consumer picks up the task and processes it.
# in the args you find a lot of information about the task that can be added to the transaction
with hub.start_transaction(
transaction,
custom_sampling_context={
Expand Down