dd-trace-py
dd-trace-py copied to clipboard
Receiver binary path is not executable: /usr/local/lib/python3.11/site-packages/ddtrace/internal/datadog/profiling/crashtracker/crashtracker_exe
Summary of problem
Which version of dd-trace-py are you using?
2.14.1
Which version of pip are you using?
24.0
Which libraries and their versions are you using?
datadog = "^0.45.0"
How can we reproduce your problem?
There are 2 relevant code snippets that we are using ddtrace patch the python logging
from ddtrace import patch
patch(logging=True)
FORMAT = (
"%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] "
"[dd.service=%(dd.service)s dd.env=%(dd.env)s dd.version=%(dd.version)s dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s] "
"- %(message)s"
)
logging.basicConfig(format=FORMAT)
logger = logging.getLogger(__name__)
logger.level = logging.INFO
using the structlog example:
def tracer_injection(logger, log_method, event_dict):
"""Integrate tracing and logging for Datadog."""
# get correlation ids from current tracer context
span = tracer.current_span()
trace_id, span_id = (span.trace_id, span.span_id) if span else (None, None)
# add ids to structlog event dictionary
event_dict["dd.trace_id"] = str(trace_id or 0)
event_dict["dd.span_id"] = str(span_id or 0)
# add the env, service, and version configured for the tracer
event_dict["dd.env"] = "dev"
event_dict["dd.service"] = "rhino-api"
event_dict["dd.version"] = ddtrace.config.version or ""
return event_dict
structlog.configure(processors=[tracer_injection, structlog.processors.JSONRenderer()])
logger = structlog.get_logger("app_logger")
logger.level = logging.INFO
and standard logging will produce above trace, even though the env is on ubuntu
What is the result that you get?
Receiver binary path is not executable: /usr/local/lib/python3.11/site-packages/ddtrace/internal/datadog/profiling/crashtracker/crashtracker_exe in logs
What is the result that you expected?
i am not seeing any datadog logs from my application without any app code update recently, except upgrading ddtrace. Expectation is seeing the logs in datadog logs