Skip to content

[BUG]: KeyError: 'signals' #11825

Open
Open
@Omar-Bishtawi

Description

@Omar-Bishtawi

Tracer Version(s)

ddtrace==2.17.3

Python Version(s)

Python 3.11.6

Pip Version(s)

24.3.1

Bug Report

sometimes without a clear pattern, or clear reproduction steps . we get the following error:

Traceback (most recent call last):
  File "/var/python/venv/lib64/python3.11/site-packages/ddtrace/debugging/_debugger.py", line 266, in __return__
    self._close_signals(retval=value)
  File "/var/python/venv/lib64/python3.11/site-packages/ddtrace/debugging/_debugger.py", line 238, in _close_signals
    signals = cast(Deque[Signal], self.get("signals"))
                                  ^^^^^^^^^^^^^^^^^^^
  File "/var/python/venv/lib64/python3.11/site-packages/ddtrace/internal/wrapping/context.py", line 286, in get
    return self._storage_stack.get()[-1][key]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'signals'

It doesn't cause any behavioral issues on the application or in APM.

we started to notice this issue more when we enabled Dynamic instrumentation (might be correlated and might not)

Reproduction Code

No response

Error Logs

No response

Libraries in Use

No response

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions