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 1010
1111initialize_cold_start_tracing ()
1212
13+
1314# The minor version corresponds to the Lambda layer version.
1415# E.g.,, version 0.5.0 gets packaged into layer version 5.
1516from datadog_lambda .version import __version__ # noqa: E402 F401
1617from datadog_lambda .logger import initialize_logging # noqa: E402
1718
18-
1919initialize_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 2525 Headers ,
2626)
2727from datadog_lambda .module_name import modify_module_name
28- from datadog_lambda .patch import patch_all
2928from datadog_lambda .span_pointers import calculate_span_pointers
3029from datadog_lambda .tag_object import tag_object
3130from datadog_lambda .tracing import (
4746 extract_http_status_code_tag ,
4847)
4948
50- # Patch third-party libraries for tracing, must be done before importing any
51- # handler code.
52- patch_all ()
53-
5449if config .profiling_enabled :
5550 from ddtrace .profiling import profiler
5651
You can’t perform that action at this time.
0 commit comments