Skip to content

[BUG]: traced_queue_enqueue_job breaks with rq versions > 2.6 #16664

@mvienneau

Description

@mvienneau

Tracer Version(s)

4.5.0

Python Version(s)

Python 3.11

Pip Version(s)

pip 25.3

Bug Report

rq introduced a breaking change to their Job class in this PR, specifically removing get_id() and replacing it with @property id.

This breaks traced_queue_enqueue_job when attempting to get the job id on versions of RQ > 2.6

Reproduction Code

No response

Error logs

  File "/venv/lib/python3.11/site-packages/ddtrace/contrib/internal/rq/patch.py", line 80, in traced_queue_enqueue_job
    JOB_ID: job.get_id(),
            ^^^^^^^^^^
AttributeError: 'Job' object has no attribute 'get_id'

No response

Libraries in Use

rq

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions