Skip to content

feat(test-celery-queues-module): Migrate to streamed spans - #102

Open
ericapisani wants to merge 1 commit into
mainfrom
py-2758/test-celery-queues-module-span-api
Open

feat(test-celery-queues-module): Migrate to streamed spans#102
ericapisani wants to merge 1 commit into
mainfrom
py-2758/test-celery-queues-module-span-api

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Summary

  • test-celery-queues-module already has trace_lifecycle="stream", under which sentry_sdk.start_transaction(...) returns a NoOpSpan and records nothing.
  • Replaces the project's single start_transaction(op="function", name="celery-task-started-from-transaction") call in main.py with sentry_sdk.traces.start_span(name="celery-task-started-from-transaction", attributes={"sentry.op": "function"}).
  • No other project directories touched.

Test plan

  • python -m py_compile main.py tasks.py
  • grep -rn "start_transaction\|sentry_sdk.start_span" test-celery-queues-module shows no remaining legacy calls (only the new sentry_sdk.traces.start_span).
  • No messaging.* set_data keys existed in this project's own code to preserve (queues module UI data is set internally by CeleryIntegration).

https://claude.ai/code/session_01TTtVSwfTGeB9RQzf3Pv8SE

Under trace_lifecycle="stream", start_transaction returns a NoOpSpan
and records nothing. Replace the single start_transaction call with
sentry_sdk.traces.start_span so the celery queues module demo
actually produces a span.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TTtVSwfTGeB9RQzf3Pv8SE
@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

PY-2758

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.

1 participant