in packages/core/lib/aws-xray.js [95:246]
appendAWSWhitelist: require('./segments/attributes/aws').appendAWSWhitelist,
/**
* Overrides the default streaming threshold (100).
* The threshold represents the maximum number of subsegments on a single segment before
* the SDK begins to send the completed subsegments out of band of the main segment.
* Reduce this threshold if you see the 'Segment too large to send' error.
* @param {number} threshold - The new threshold to use.
* @memberof AWSXRay
*/
setStreamingThreshold: segmentUtils.setStreamingThreshold,
/**
* Set your own logger for the SDK.
* @param {Object} logger - A logger which responds to debug/info/warn/error calls.
* @memberof AWSXRay
*/
setLogger: logging.setLogger,
/**
* Gets the set logger for the SDK.
* @memberof AWSXRay
*/
getLogger: logging.getLogger,
/**
* Configures the address and port the daemon is expected to be on.
* @param {string} address - Address of the daemon the segments should be sent to. Expects 'x.x.x.x', ':yyyy' or 'x.x.x.x:yyyy' IPv4 formats.
* @module DaemonConfig
* @memberof AWSXRay
* @function
* @see module:DaemonConfig.setDaemonAddress
*/
setDaemonAddress: require('./daemon_config').setDaemonAddress,
/**
* @param {string} name - The name of the new subsegment.
* @param {function} fcn - The function conext to wrap.
* @param {Segment|Subsegment} [parent] - The parent for the new subsegment, for manual mode.
* @memberof AWSXRay
* @function
* @see module:capture.captureFunc
*/
captureFunc: require('./capture').captureFunc,
/**
* @param {string} name - The name of the new subsegment.
* @param {function} fcn - The function conext to wrap.
* @param {Segment|Subsegment} [parent] - The parent for the new subsegment, for manual mode.
* @memberof AWSXRay
* @function
* @see module:capture.captureAsyncFunc
*/
captureAsyncFunc: require('./capture').captureAsyncFunc,
/**
* @param {string} name - The name of the new subsegment.
* @param {function} fcn - The function conext to wrap.
* @param {Segment|Subsegment} [parent] - The parent for the new subsegment, for manual mode.
* @memberof AWSXRay
* @function
* @see module:capture.captureCallbackFunc
*/
captureCallbackFunc: require('./capture').captureCallbackFunc,
/**
* @param {AWS} awssdk - The Javascript AWS SDK.
* @memberof AWSXRay
* @function
* @see module:aws_p.captureAWS
*/
captureAWS: require('./patchers/aws_p').captureAWS,
/**
* @param {AWS.Service} service - An instance of a AWS service to wrap.
* @memberof AWSXRay
* @function
* @see module:aws_p.captureAWSClient
*/
captureAWSClient: require('./patchers/aws_p').captureAWSClient,
/**
* @param {AWSv3.Service} service - An instance of a AWS SDK v3 service to wrap.
* @param {Segment|Subsegment} segment - Optional segment for manual mode.
* @memberof AWSXRay
* @function
* @see module:aws3_p.captureAWSClient
*/
captureAWSv3Client: require('./patchers/aws3_p').captureAWSClient,
/**
* @param {http|https} module - The built in Node.js HTTP or HTTPS module.
* @memberof AWSXRay
* @function
* @returns {http|https}
* @see module:http_p.captureHTTPs
*/
captureHTTPs: require('./patchers/http_p').captureHTTPs,
/**
* @param {http|https} module - The built in Node.js HTTP or HTTPS module.
* @memberof AWSXRay
* @function
* @see module:http_p.captureHTTPsGlobal
*/
captureHTTPsGlobal: require('./patchers/http_p').captureHTTPsGlobal,
/**
* @memberof AWSXRay
* @function
* @see module:promise_p.capturePromise
*/
capturePromise: require('./patchers/promise_p').capturePromise,
/**
* Exposes various helper methods.
* @memberof AWSXRay
* @function
* @see module:utils
*/
utils: utils,
/**
* @memberof AWSXRay
* @type {object}
* @namespace AWSXRay.database
*/
database: {
/**
* Exposes the SqlData class.
* @memberof AWSXRay.database
* @see SqlData
*/
SqlData: require('./database/sql_data'),
},