Helpers for working with AWS XRAY.
npm install @mu-ts/xray
/**
* Registers all AWS services, with XRAY, that get used within the scope of the handler.
* Registers all HTTPS invocations with XRAY, that occur within the scope of the handler.
*/
XRAY.capture
.aws(require('aws-sdk'))
.httpsGlobal(require('https'));
`
Available capture points.
* aws(awssdk: typeof AWS)
* awsClient(service: T)
* httpsGlobal(mod: T, downstreamXRayEnabled: boolean)
* https(mod: T, downstreamXRayEnabled: boolean)
* asyncFunc(name: string, fcn: (subsegment?: Subsegment) => T, parent?: Segment | Subsegment);
* callbackFunc(name: string, fcn: (...args: S) => T, parent?: Segment | Subsegment)
* func(name: string, fcn: (subsegment?: Subsegment) => T, parent?: Segment | Subsegment)