Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: KeyError: 'signals' #11825

Open
Omar-Bishtawi opened this issue Dec 22, 2024 · 0 comments
Open

[BUG]: KeyError: 'signals' #11825

Omar-Bishtawi opened this issue Dec 22, 2024 · 0 comments
Labels

Comments

@Omar-Bishtawi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant