Closed TalUsvyatsky closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.10%. Comparing base (
78c1900
) to head (249712e
). Report is 8 commits behind head on main.:exclamation: Current head 249712e differs from pull request most recent head 75ae1c8. Consider uploading reports for the commit 75ae1c8 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
What does this PR do?
This PR adds telemetry for exceptions that occur outside of the handler function.
When an exception occurs outside of the handler function:
aws.lambda.enhanced.errors
is emittedMotivation
Testing Guidelines
Created a handler file like this for testing "cjs" handler:
and one like this for testing "mjs" handler:
Deployed my function using each handler and invoked it
Saw traces with an error span from the call (example trace)
Saw
aws.lambda.enhanced.errors
emitted (graph)Traces appear in serverless detail page invocation table (link to search for function)
Issues appear in error tracking and are informative
Additional Notes
Types of Changes
Check all that apply