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
feat: pre-register partial transactions in AWS Lambda #3285
Conversation
…nager=patch setting The use of an async wrapper function and awaiting something breaks the async context for the `patch` context manager.
…ontextManager=patch setting" This reverts commit 785732e.
…limitation The usage of `agent._instrumentation` breaks a lot of test code because of the AgentMock. A follow-up change will fix this all up (dropping usage of AgentMock). I'll do this separately to keep this change more focused
…an 'await Promise' for node v10.0-10.3 inclusive
A note on support for
|
#3305 for this |
…factor Lambda tests (#3305) Changes in #3285 broke Lambda instrumentation if the deprecated `contextManager:'patch' config var was used. This restores support for that, FWIW. Also, refactoring so we can drop AgentMock and TransactionMock under test/lambda/... to simplify: - roll promises.test.js into the main test file - roll trace-context.test.js into the main lambda test file - roll transaction.test.js into main lambda test file - rename main lambda test file to lambda.test.js - drop now unused MockAgent
…factor Lambda tests (#3305) Changes in #3285 broke Lambda instrumentation if the deprecated `contextManager:'patch' config var was used. This restores support for that, FWIW. Also, refactoring so we can drop AgentMock and TransactionMock under test/lambda/... to simplify: - roll promises.test.js into the main test file - roll trace-context.test.js into the main lambda test file - roll transaction.test.js into main lambda test file - rename main lambda test file to lambda.test.js - drop now unused MockAgent
When used with the Lambda extension >=v1.4.0, this results in
transactions being reported for Lambda timeout, uncaughtException,
and unhandledRejection.
Closes: #3136
Closes: #2379
checklist
follow-up work
contextManager: patch
usage (see feat: pre-register partial transactions in AWS Lambda #3285 (comment))contextManager: 'patch'
; refactor Lambda tests #3305 for this.unhandleException
. With this change we'll be reporting a transaction withtransaction.outcome = "failure"
, which is good, but there won't be an "error" object with a stacktrace that points to the location of the throw error.