File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 10
10
11
11
initialize_cold_start_tracing ()
12
12
13
+
13
14
# The minor version corresponds to the Lambda layer version.
14
15
# E.g.,, version 0.5.0 gets packaged into layer version 5.
15
16
from datadog_lambda .version import __version__ # noqa: E402 F401
16
17
from datadog_lambda .logger import initialize_logging # noqa: E402
17
18
18
-
19
19
initialize_logging (__name__ )
20
+
21
+
22
+ from datadog_lambda .patch import patch_all # noqa: E402
23
+
24
+ # Patch third-party libraries for tracing, must be done before importing any
25
+ # handler code.
26
+ patch_all ()
Original file line number Diff line number Diff line change 25
25
Headers ,
26
26
)
27
27
from datadog_lambda .module_name import modify_module_name
28
- from datadog_lambda .patch import patch_all
29
28
from datadog_lambda .span_pointers import calculate_span_pointers
30
29
from datadog_lambda .tag_object import tag_object
31
30
from datadog_lambda .tracing import (
47
46
extract_http_status_code_tag ,
48
47
)
49
48
50
- # Patch third-party libraries for tracing, must be done before importing any
51
- # handler code.
52
- patch_all ()
53
-
54
49
if config .profiling_enabled :
55
50
from ddtrace .profiling import profiler
56
51
You can’t perform that action at this time.
0 commit comments