datadog_lambda 8.121.0__py3-none-any.whl → 8.122.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
datadog_lambda/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.121.0"
1
+ __version__ = "8.122.0"
@@ -0,0 +1,111 @@
1
+ Metadata-Version: 2.1
2
+ Name: datadog_lambda
3
+ Version: 8.122.0
4
+ Summary: The Datadog AWS Lambda Library
5
+ Home-page: https://github.com/DataDog/datadog-lambda-python
6
+ License: Apache-2.0
7
+ Keywords: datadog,aws,lambda,layer
8
+ Author: Datadog, Inc.
9
+ Author-email: dev@datadoghq.com
10
+ Requires-Python: >=3.8.0,<4
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Provides-Extra: dev
21
+ Requires-Dist: botocore (>=1.34.0,<2.0.0) ; extra == "dev"
22
+ Requires-Dist: datadog (>=0.51.0,<1.0.0)
23
+ Requires-Dist: ddtrace (>=3.19.1,<4) ; python_version >= "3.8" and python_version < "3.10"
24
+ Requires-Dist: ddtrace (>=4.1.1,<5) ; python_version >= "3.10"
25
+ Requires-Dist: flake8 (>=5.0.4,<6.0.0) ; extra == "dev"
26
+ Requires-Dist: pytest (>=8.0.0,<9.0.0) ; extra == "dev"
27
+ Requires-Dist: pytest-benchmark (>=4.0,<5.0) ; extra == "dev"
28
+ Requires-Dist: requests (>=2.22.0,<3.0.0) ; extra == "dev"
29
+ Requires-Dist: ujson (>=5.9.0)
30
+ Requires-Dist: wrapt (>=1.11.2,<2.0.0)
31
+ Project-URL: Repository, https://github.com/DataDog/datadog-lambda-python
32
+ Description-Content-Type: text/markdown
33
+
34
+ # datadog-lambda-python
35
+
36
+ ![build](https://github.com/DataDog/datadog-lambda-python/workflows/build/badge.svg)
37
+ [![PyPI](https://img.shields.io/pypi/v/datadog-lambda)](https://pypi.org/project/datadog-lambda/)
38
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/datadog-lambda)
39
+ [![Slack](https://chat.datadoghq.com/badge.svg?bg=632CA6)](https://chat.datadoghq.com/)
40
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-lambda-python/blob/main/LICENSE)
41
+
42
+ Datadog Lambda Library for Python (3.8, 3.9, 3.10, 3.11, 3.12, 3.13, and 3.14) enables [enhanced Lambda metrics](https://docs.datadoghq.com/serverless/enhanced_lambda_metrics), [distributed tracing](https://docs.datadoghq.com/serverless/distributed_tracing), and [custom metric submission](https://docs.datadoghq.com/serverless/custom_metrics) from AWS Lambda functions.
43
+
44
+ ## Installation
45
+
46
+ Follow the [installation instructions](https://docs.datadoghq.com/serverless/installation/python/), and view your function's enhanced metrics, traces and logs in Datadog.
47
+
48
+ ## Configuration
49
+
50
+ Follow the [configuration instructions](https://docs.datadoghq.com/serverless/configuration) to tag your telemetry, capture request/response payloads, filter or scrub sensitive information from logs or traces, and more.
51
+
52
+ For additional tracing configuration options, check out the [official documentation for Datadog trace client](https://ddtrace.readthedocs.io/en/stable/configuration.html).
53
+
54
+ Besides the environment variables supported by dd-trace-py, the datadog-lambda-python library added following environment variables.
55
+
56
+ | Environment Variables | Description | Default Value |
57
+ | -------------------- | ------------ | ------------- |
58
+ | DD_ENCODE_AUTHORIZER_CONTEXT | When set to `true` for Lambda authorizers, the tracing context will be encoded into the response for propagation. Supported for NodeJS and Python. | `true` |
59
+ | DD_DECODE_AUTHORIZER_CONTEXT | When set to `true` for Lambdas that are authorized via Lambda authorizers, it will parse and use the encoded tracing context (if found). Supported for NodeJS and Python. | `true` |
60
+ | DD_COLD_START_TRACING | When true (default), tracing occurs during cold start which creates many child spans. When false, only one cold start span is created. Used in NodeJS and Python. | `true` |
61
+ | DD_MIN_COLD_START_DURATION | Sets the minimum duration (in milliseconds) for a module load event to be traced via Cold Start Tracing. Number. | `3` |
62
+ | DD_COLD_START_TRACE_SKIP_LIB | optionally skip creating Cold Start Spans for a comma-separated list of libraries. Useful to limit depth or skip known libraries. | `ddtrace.internal.compat,ddtrace.filters` |
63
+ | DD_CAPTURE_LAMBDA_PAYLOAD | [Captures incoming and outgoing AWS Lambda payloads][1] in the Datadog APM spans for Lambda invocations. | `false` |
64
+ | DD_CAPTURE_LAMBDA_PAYLOAD_MAX_DEPTH | Determines the level of detail captured from AWS Lambda payloads, which are then assigned as tags for the `aws.lambda` span. It specifies the nesting depth of the JSON payload structure to process. Once the specified maximum depth is reached, the tag's value is set to the stringified value of any nested elements beyond this level. <br> For example, given the input payload: <pre>{<br> "lv1" : {<br> "lv2": {<br> "lv3": "val"<br> }<br> }<br>}</pre> If the depth is set to `2`, the resulting tag's key is set to `function.request.lv1.lv2` and the value is `{\"lv3\": \"val\"}`. <br> If the depth is set to `0`, the resulting tag's key is set to `function.request` and value is `{\"lv1\":{\"lv2\":{\"lv3\": \"val\"}}}` | `10` |
65
+ | DD_EXCEPTION_REPLAY_ENABLED | When set to `true`, the Lambda will run with Error Tracking Exception Replay enabled, capturing local variables. | `false` |
66
+
67
+
68
+ ## Opening Issues
69
+
70
+ If you encounter a bug with this package, we want to hear about it. Before opening a new issue, search the existing issues to avoid duplicates.
71
+
72
+ When opening an issue, include the Datadog Lambda Library version, Python version, and stack trace if available. In addition, include the steps to reproduce when appropriate.
73
+
74
+ You can also open an issue for a feature request.
75
+
76
+ ## Lambda Profiling Beta
77
+
78
+ Datadog's [Continuous Profiler](https://www.datadoghq.com/product/code-profiling/) is now available in beta for Python in version 4.62.0 and layer version 62 and above. This optional feature is enabled by setting the `DD_PROFILING_ENABLED` environment variable to `true`. During the beta period, profiling is available at no additional cost.
79
+
80
+ The Continuous Profiler works by spawning a thread which periodically wakes up and takes a snapshot of the CPU and Heap of all running python code. This can include the profiler itself. If you want the Profiler to ignore itself, set `DD_PROFILING_IGNORE_PROFILER` to `true`.
81
+
82
+ ## Major Version Notes
83
+
84
+ ### 6.x / Layer version 95+
85
+ - The release changed how Lambda's traceID is hashed if the incoming payload contains Step Functions context object. This change only affects those who uses inject Step Functions context object into Lambda payload.
86
+
87
+ ### 5.x / Layer version 86+
88
+ - Python3.7 support has been [deprecated](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) by AWS, and support removed from this library.
89
+
90
+ ### 4.x / Layer version 61+
91
+
92
+ - Python3.6 support has been [deprecated](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) by AWS, and support removed from this library.
93
+ - `dd-trace` upgraded from 0.61 to 1.4, full release notes are available [here](https://ddtrace.readthedocs.io/en/stable/release_notes.html#v1-0-0)
94
+ - `get_correlation_ids()` has been changed to `get_log_correlation_context()`, which now returns a dictionary containing the active `span_id`, `trace_id`, as well as `service` and `env`.
95
+
96
+ ## Contributing
97
+
98
+ If you find an issue with this package and have a fix, please feel free to open a pull request following the [procedures](CONTRIBUTING.md).
99
+
100
+ ## Community
101
+
102
+ For product feedback and questions, join the `#serverless` channel in the [Datadog community on Slack](https://chat.datadoghq.com/).
103
+
104
+ ## License
105
+
106
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
107
+
108
+ This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2019 Datadog, Inc.
109
+
110
+ [1]: https://www.datadoghq.com/blog/troubleshoot-lambda-function-request-response-payloads/
111
+
@@ -19,12 +19,12 @@ datadog_lambda/tags.py,sha256=wy6uH8eAGMn7cfZEdHpL9uEGoM85bVyyXhYwSQtfHHc,2532
19
19
  datadog_lambda/thread_stats_writer.py,sha256=VfD6G65zNHDA0nABhGOO0it7yqvn-p6ereQ329DA7r8,2894
20
20
  datadog_lambda/tracing.py,sha256=jAhhGBlDZTJb-jiwvwTeVQAEH0wENWakDlIfre3_cCo,58507
21
21
  datadog_lambda/trigger.py,sha256=bkNe77eOVuYc8kyH7KKYlsvHZfC-NXyl9GLqJ8Qaky8,14628
22
- datadog_lambda/version.py,sha256=B_xVOhS32bp0A9fxp8_vn516Yjhj3K3lYaC2MKtyVnQ,24
22
+ datadog_lambda/version.py,sha256=uPoK7SbH1nn-0B9h4SvizpKlV5LvypIOlxhbgtQFZ5A,24
23
23
  datadog_lambda/wrapper.py,sha256=RO-Fk9izWTuP7H9QCXeHs9B0weDkPy1kvSZ5YsMLV-Y,15649
24
24
  datadog_lambda/xray.py,sha256=jvA4Fk76PLMgsjUoUZ7gp2otv53hFt39Nvso1ZNaivg,3749
25
- datadog_lambda-8.121.0.dist-info/LICENSE,sha256=4yQmjpKp1MKL7DdRDPVHkKYc2W0aezm5SIDske8oAdM,11379
26
- datadog_lambda-8.121.0.dist-info/LICENSE-3rdparty.csv,sha256=9CDAR1GKawwTbZkqt1RP0uwEcaRM3RhOeTB5tWXr8Ts,1381
27
- datadog_lambda-8.121.0.dist-info/METADATA,sha256=eicMuG6GQ4FbSUWAvgKV3YRlqtpwTraRUrq1xS4CLnc,994
28
- datadog_lambda-8.121.0.dist-info/NOTICE,sha256=Jue-d8mQ1ENIHDZdYc2-X8mVYtScXb8pzF1pTLN-kRc,141
29
- datadog_lambda-8.121.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
30
- datadog_lambda-8.121.0.dist-info/RECORD,,
25
+ datadog_lambda-8.122.0.dist-info/LICENSE,sha256=4yQmjpKp1MKL7DdRDPVHkKYc2W0aezm5SIDske8oAdM,11379
26
+ datadog_lambda-8.122.0.dist-info/LICENSE-3rdparty.csv,sha256=9CDAR1GKawwTbZkqt1RP0uwEcaRM3RhOeTB5tWXr8Ts,1381
27
+ datadog_lambda-8.122.0.dist-info/METADATA,sha256=2U944UTegmvlOy_ACoAIpBkLDYGphOh41UBEofXPeDE,7901
28
+ datadog_lambda-8.122.0.dist-info/NOTICE,sha256=Jue-d8mQ1ENIHDZdYc2-X8mVYtScXb8pzF1pTLN-kRc,141
29
+ datadog_lambda-8.122.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
30
+ datadog_lambda-8.122.0.dist-info/RECORD,,
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: datadog_lambda
3
- Version: 8.121.0
4
- Summary: The Datadog AWS Lambda Library
5
- Author: Datadog, Inc.
6
- Author-email: dev@datadoghq.com
7
- Requires-Python: >=3.8.0,<4
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.8
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Provides-Extra: dev
16
- Requires-Dist: botocore (>=1.34.0,<2.0.0) ; extra == "dev"
17
- Requires-Dist: datadog (>=0.51.0,<1.0.0)
18
- Requires-Dist: ddtrace (>=3.19.1,<4)
19
- Requires-Dist: flake8 (>=5.0.4,<6.0.0) ; extra == "dev"
20
- Requires-Dist: pytest (>=8.0.0,<9.0.0) ; extra == "dev"
21
- Requires-Dist: pytest-benchmark (>=4.0,<5.0) ; extra == "dev"
22
- Requires-Dist: requests (>=2.22.0,<3.0.0) ; extra == "dev"
23
- Requires-Dist: ujson (>=5.9.0)
24
- Requires-Dist: wrapt (>=1.11.2,<2.0.0)