You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing AttributeError: module 'ddtrace.internal.datadog.profiling.ddup' has no attribute 'SampleHandle'.
Reproduction Code
Although I don't have a minimal repro for the issue, I can report that I'm doing the following:
import ddtrace.auto
import ddtrace.profiling.auto
set DD_PROFILING_TIMELINE_ENABLED=true
Used @ddtrace.tracer.wrap() decorator
Used tracer.context_provider.activate(trace_ctx) in a thread
Used with tracer.trace(...) context manager
tracer.sample(tracer.current_root_span())
Get tracer.current_trace_context(), to be passed to another thread
Error Logs
2025-01-10T03:47:47.530239Z [error ] Billing failed with an unhandled exception (Billing Overall Summary and Billing Summary for Counterparty will not be available): Traceback (most recent call last):
File "/Users/jasha/digital-pb/backend/code/.venv/lib/python3.11/site-packages/ddtrace/profiling/collector/__init__.py", line 43, in periodic
for events in self.collect():
^^^^^^^^^^^^^^
File "/Users/jasha/digital-pb/backend/code/.venv/lib/python3.11/site-packages/ddtrace/profiling/collector/memalloc.py", line 191, in collect
handle = ddup.SampleHandle()
^^^^^^^^^^^^^^^^^
AttributeError: module 'ddtrace.internal.datadog.profiling.ddup' has no attribute 'SampleHandle'
[billing.v0.logging] dd.service=backend.code.billing.v0 filename=logging.py func_name=_handle_exception lineno=96
Traceback (most recent call last):
File "/Users/jasha/digital-pb/backend/code/.venv/lib/python3.11/site-packages/ddtrace/profiling/collector/__init__.py", line 43, in periodic
for events in self.collect():
^^^^^^^^^^^^^^
File "/Users/jasha/digital-pb/backend/code/.venv/lib/python3.11/site-packages/ddtrace/profiling/collector/memalloc.py", line 191, in collect
handle = ddup.SampleHandle()
^^^^^^^^^^^^^^^^^
AttributeError: module 'ddtrace.internal.datadog.profiling.ddup' has no attribute 'SampleHandle'
Libraries in Use
ddtrace, concurrent.futures.ThreadPoolExecutor
Operating System
macOS 15.2 (24C101) Sequoia, Darwin Kernel Version 24.2.0
The text was updated successfully, but these errors were encountered:
Tracer Version(s)
ddtrace.version == '2.18.1'
Python Version(s)
Python 3.11.9
Pip Version(s)
pip 24.0
Bug Report
Hi,
I'm seeing
AttributeError: module 'ddtrace.internal.datadog.profiling.ddup' has no attribute 'SampleHandle'
.Reproduction Code
Although I don't have a minimal repro for the issue, I can report that I'm doing the following:
import ddtrace.auto
import ddtrace.profiling.auto
DD_PROFILING_TIMELINE_ENABLED=true
@ddtrace.tracer.wrap()
decoratortracer.context_provider.activate(trace_ctx)
in a threadwith tracer.trace(...)
context managertracer.sample(tracer.current_root_span())
tracer.current_trace_context()
, to be passed to another threadError Logs
Libraries in Use
ddtrace
,concurrent.futures.ThreadPoolExecutor
Operating System
macOS 15.2 (24C101) Sequoia, Darwin Kernel Version 24.2.0
The text was updated successfully, but these errors were encountered: