Skip to content

Add tracing to DramatiqIntegration #3454

Closed

Description

@ramonsaraiva

How do you use Sentry?

Self-hosted/on-premise

Version

2.13.0

Steps to Reproduce

  1. Follow the instructions on https://docs.sentry.io/platforms/python/integrations/dramatiq/ for using the DramatiqIntegration
  2. Enable tracing and profiling

Additional context:
I know #3397 was recently released and this is most likely happening because that integration is only capturing events from exceptions, but the documentation still states that it is just a matter of enabling tracing or profiling.

Would be amazing to have tasks instrumented automatically, but maybe a temporary warning in the dramatiq integration docs to make it explicit that it doesn't work without manual instrumentation.

Expected Result

Dramatiq actors tracing and profiling appear in performance and profiling sections of Sentry without manual instrumentation

Actual Result

Dramatiq actors tracing and profiling do not appear in performance and profiling sections of Sentry

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 23, 2024
  2. changed the title [-]dramatiq integration with no tracing or profiling[/-] [+]Add tracing to `DramatiqIntegration`[/+] on Aug 26, 2024
  3. szokeasaurusrex commented on Aug 26, 2024

    @szokeasaurusrex
    Member

    Hi @ramonsaraiva, it indeed appears that the DramatiqIntegration does not support tracing/profiling; the docs page is incorrect.

    I opened a separate issue to make sure we update our docs page.

    Additionally, I renamed this issue to "Add tracing to DramatiqIntegration" and will place it on our backlog. We are busy with larger projects at the moment, so it might take us some time to get around to adding tracing to the Dramatiq integration. If you (or anyone else from the community) would like, please feel free to contribute a PR to add this functionality. We are happy to help with reviews.

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 26, 2024
  5. wsantos commented on Sep 3, 2024

    @wsantos

    separate issue

    @szokeasaurusrex Is there a guideline or docs explaining how this could be implemented, I am happy to give it a shot.

  6. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Sep 3, 2024
  7. szokeasaurusrex commented on Sep 4, 2024

    @szokeasaurusrex
    Member

    Hey @wsantos, the separate issue that you are referencing was the issue to update our docs to state that Dramatic does not support tracing, and I have already completed this.

    Are you instead wondering about how to add tracing to Dramatiq, which would solve this issue? If so, we have some SDK Development Docs, but I don't think these cover how to write a tracing integration (perhaps this is something we can add). My recommendation is to take a look at the source code for other integrations which do have tracing and base your implementation on that. You can feel free to reach out to us if you get stuck anywhere

  8. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Sep 4, 2024
  9. 15 remaining items

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 10, 2025
  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 15, 2025
  12. removed their assignment
    on Jul 22, 2025
  13. self-assigned this
    on Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions