DataDog / datadog-lambda-extension

The Datadog Lambda Extension is an AWS Lambda Extension that supports submitting custom metrics, traces, and logs asynchronously while your AWS Lambda function executes.
Apache License 2.0
82 stars 5 forks source link

Refactor context creation #433

Closed shreyamalpani closed 3 weeks ago

shreyamalpani commented 3 weeks ago

What does this PR do?

Creates the context for a request_id on receiving the Invoke event, and removes this logic from other events since the Invoke event is always received first.