File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from aws_xray_sdk .core import xray_recorder
10
10
from aws_xray_sdk .core .lambda_launcher import LambdaContext
11
-
12
11
from datadog_lambda .constants import (
13
12
SamplingPriority ,
14
13
TraceHeader ,
15
14
XraySubsegment ,
16
15
TraceContextSource ,
17
16
)
18
17
from ddtrace import tracer , patch
18
+ from ddtrace import __version__ as ddtrace_version
19
19
from ddtrace .propagation .http import HTTPPropagator
20
+ from datadog_lambda import __version__ as datadog_lambda_version
20
21
21
22
logger = logging .getLogger (__name__ )
22
23
@@ -248,6 +249,8 @@ def create_function_execution_span(
248
249
"function_version" : function_version ,
249
250
"request_id" : context .aws_request_id ,
250
251
"resource_names" : context .function_name ,
252
+ "datadog_lambda" : datadog_lambda_version ,
253
+ "dd_trace" : ddtrace_version ,
251
254
}
252
255
source = trace_context ["source" ]
253
256
if source == TraceContextSource .XRAY and merge_xray_traces :
You can’t perform that action at this time.
0 commit comments