From 78190f028653d341be0b3b8e1777745b415ab407 Mon Sep 17 00:00:00 2001 From: Joey Zhao <5253430+joeyzhao2018@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:10:02 -0500 Subject: [PATCH 1/2] test ddtrace3.1.0rc1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 34181459..0648d53a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ python = ">=3.8.0,<4" datadog = ">=0.51.0,<1.0.0" wrapt = "^1.11.2" -ddtrace = ">=2.20.0" +ddtrace = "3.1.0rc1" ujson = ">=5.9.0" boto3 = { version = "^1.34.0", optional = true } requests = { version ="^2.22.0", optional = true } From 97ae9f87d3c55a4fc710fa94ad6b7619dacecc40 Mon Sep 17 00:00:00 2001 From: Joey Zhao <5253430+joeyzhao2018@users.noreply.github.com> Date: Wed, 26 Feb 2025 12:49:06 -0500 Subject: [PATCH 2/2] formatting removed to reveal stacktrace --- datadog_lambda/tracing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog_lambda/tracing.py b/datadog_lambda/tracing.py index 9189eb3b..4bade586 100644 --- a/datadog_lambda/tracing.py +++ b/datadog_lambda/tracing.py @@ -698,7 +698,7 @@ def inject_correlation_ids(): handler.setFormatter( logging.Formatter( "[%(levelname)s]\t%(asctime)s.%(msecs)dZ\t%(aws_request_id)s\t" - "[dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s]\t%(message)s\n", + "\t%(message)s\n", "%Y-%m-%dT%H:%M:%S", ) )