@laconia/xray
v1.14.0
Published
Enables X-Ray integration to Laconia
Downloads
47
Readme
@laconia/xray
🛡️ Laconia X-Ray - Enables X-Ray integration to Laconia
See our website for documentation and API references.
Install
npm install --save @laconia/xray
Usage
@laconia/xray postProcessor will scan through all of the instances registered in
LaconiaContext
and call AWSXRay.captureAWSClient()
to it.
Example:
const laconia = require("@laconia/core");
const xray = require("@laconia/xray");
exports.handler = laconia(app).postProcessor(xray.postProcessor());
API
xray.postProcessor
Calls AWSXRay.captureAWSClient()
to all registered AWS service objects.
Example:
const laconia = require("@laconia/core");
const xray = require("@laconia/xray");
exports.handler = laconia(app).postProcessor(xray.postProcessor());