The Datadog AWS Lambda Library
Project description
datadog-lambda-python
Datadog Lambda Library for Python (3.7, 3.8, and 3.9) enables enhanced Lambda metrics, distributed tracing, and custom metric submission from AWS Lambda functions.
Installation
Follow the installation instructions, and view your function's enhanced metrics, traces and logs in Datadog.
Configuration
Follow the configuration instructions to tag your telemetry, capture request/response payloads, filter or scrub sensitive information from logs or traces, and more.
Opening Issues
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.
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.
You can also open an issue for a feature request.
Lambda Profiling Beta
Datadog's Continuous Profiler 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.
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
.
Major Version Notes
4.x / Layer version 61+
- Python3.6 support has been deprecated by AWS, and support removed from this library.
dd-trace
upgraded from 0.61 to 1.4, full release notes are available hereget_correlation_ids()
has been changed toget_log_correlation_context()
, which now returns a dictionary containing the activespan_id
,trace_id
, as well asservice
andenv
.
Contributing
If you find an issue with this package and have a fix, please feel free to open a pull request following the procedures.
Community
For product feedback and questions, join the #serverless
channel in the Datadog community on Slack.
License
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2019 Datadog, Inc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datadog_lambda-4.64.0.tar.gz
.
File metadata
- Download URL: datadog_lambda-4.64.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235aa0380cdec3818dfe83442e813e8b0aeffc80abb699713837b247e5f8740d |
|
MD5 | 1ebf4a96a4a9ada3b118eb6725ea97b0 |
|
BLAKE2b-256 | de2755888fd5dd51dd1140778037150a39c0a49c69ae1b24ed3635dcbfcdb1a0 |
File details
Details for the file datadog_lambda-4.64.0-py3-none-any.whl
.
File metadata
- Download URL: datadog_lambda-4.64.0-py3-none-any.whl
- Upload date:
- Size: 35.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a563b703ecdb54e56ea36dd60c7d86e875e996e0eb3747d1e14ad5fc24829b8b |
|
MD5 | 62c17c5564d3dd488beb65368d66d36d |
|
BLAKE2b-256 | 06525a014722e1cc05462259a9fbdba0f1a7d8b53de4a23064c605804513c5a2 |