Skip to content

[BUG]: RuntimeError: dictionary changed size during iteration #15182

@camerongraybill

Description

@camerongraybill

Tracer Version(s)

3.18.0

Python Version(s)

3.13.3

Pip Version(s)

25.3

Bug Report

Image

We're seeing this specifically in code that makes many concurrent calls to create spans with a ThreadPoolExecutor. Just started seeing it when upgrading from 3.16.2 yesterday.

Reproduction Code

No response

Error Logs

No response

Libraries in Use

django==5.2.8
psycopg2==2.9.11
ddtrace==3.18.0

We're running a ton of other packages that I don't want to share if I don't need to. Those seem the most relevant.

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