You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: support Lambda instrumentation for contextManager: 'patch'; refactor Lambda tests (elastic#3305)
Changes in elastic#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
* System and custom metrics are not collected for Lambda functions. This is both because most of those are irrelevant
81
81
and because the interval-based event sending model is not suitable for FaaS environments.
82
82
* Lambda instrumentation does not currently work when the (deprecated) <<context-manager,`contextManager: 'patch'`>> configuration setting is used.
83
-
* The APM agent does not yet support a Lambda handler module that uses ECMAScript modules (ESM). That means a your handler file name should end with ".js" (and not have `"type": "module"` in package.json if you have one) or end with ".cjs". A handler file that uses the ".mjs" suffix will not be instrumented by the APM agent.
83
+
* The APM agent does not yet support a Lambda handler module that uses ECMAScript modules (ESM). That means your handler file name should end with ".js" (and not have `"type": "module"` in package.json if you have one) or end with ".cjs". A handler file that uses the ".mjs" suffix will not be instrumented by the APM agent.
0 commit comments