Thanks to visit codestin.com
Credit goes to github.com

Skip to content

(feat): Enable Exception Replay in Lambda #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025

Conversation

nhulston
Copy link
Contributor

@nhulston nhulston commented May 9, 2025

What does this PR do?

Enable exception replay in Lambda if DD_EXCEPTION_REPLAY_ENABLED=true

Exception replay blog post

Note: At the moment, this only works when DD_EXTENSION_VERSION=compatibility. This is because we have not yet implemented these endpoints in the Rust extension:

  • /debugger/v1/diagnostics
  • /debugger/v1/input

Motivation

Support exception replay in Lambda

Testing Guidelines

Manually. It works when compatibility mode is enabled:
Screenshot 2025-05-09 at 12 55 52β€―PM

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@nhulston nhulston requested a review from a team as a code owner May 9, 2025 16:57
Copy link
Contributor

@purple4reina purple4reina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great. Can you help me understand what this Exception Replay feature is all about?

@nhulston
Copy link
Contributor Author

nhulston commented May 9, 2025

Code looks great. Can you help me understand what this Exception Replay feature is all about?

@purple4reina Sure! It basically just captures all the local variables and their values at the time of an exception, kind of like a debugger in an IDE. Here's a blog post: https://www.datadoghq.com/blog/exception-replay-datadog/

Currently only supported on Python, Java, and .NET tracers

Gonna update the PR with that blog post

@nhulston nhulston merged commit 1677473 into main May 9, 2025
60 checks passed
@nhulston nhulston deleted the nicholas.hulston/enable-exception-replay branch May 9, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants