The Datadog Lambda Extension is an AWS Lambda Extension that supports submitting custom metrics, traces, and logs asynchronously while your AWS Lambda function executes.
Creates an aws.lambda.cold_start span on Cold Starts (or proactive inits), adds the correct tags to the aws.lambda span for cold starts.
Adds tags for cold start to enhanced metrics
How?
Calculate cold start span given the telemetry API events.
Calculate the cold start / proactive init based on the invoke.
Adding a set of dynamic value tags for enhanced metrics, so we can append the cold start or proactive init tags.
Notes
ContextBuffer now doesn't remove on on_platform_report, instead, we held all invocations and await for the 6th one to remove some space. This is so we can calculate properly the tags on cold start.
What?
aws.lambda.cold_start
span on Cold Starts (or proactive inits), adds the correct tags to theaws.lambda
span for cold starts.How?
Notes
ContextBuffer
now doesn't remove onon_platform_report
, instead, we held all invocations and await for the 6th one to remove some space. This is so we can calculate properly the tags on cold start.