Configuration for individual services to enable/disable them. Message
queue services can also configure the producer and consumer individually
by passing an object with a producer and consumer properties. The
list of valid service keys is in the service-specific section of
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html
OptionalbatchWhether to inject all messages during batch AWS SQS, Kinesis, and SNS send operations. Normal behavior is to inject the first message in batch send operations.
OptionalenabledWhether to enable the plugin.
OptionalhooksHooks to run before spans are finished.
Optionalrequest?: (span?: Span, response?: anyObject) => anyHook to execute just before the aws span finishes.
OptionalmeasuredWhether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.
OptionalserviceThe service name to be used for this plugin. When a function is used it is called with the AWS
request parameters (e.g. { TableName } for DynamoDB, { Bucket } for S3) and its return value
is used as the service name. Returning a nullish value falls back to the default service name, so
individual resources can be mapped without renaming every call to the service.
This plugin automatically instruments the aws-sdk module.