dd-trace
    Preparing search index...

    Interface aws_sdk

    This plugin automatically instruments the aws-sdk module.

    interface aws_sdk {
        batchPropagationEnabled?: boolean;
        enabled?: boolean;
        hooks?: { request?: (span?: Span, response?: anyObject) => any };
        measured?: boolean | { [key: string]: boolean };
        service?: any;
        splitByAwsService?: boolean;
        [key: string]: undefined | boolean | Object;
    }

    Indexable

    • [key: string]: undefined | boolean | Object

      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

    Index

    Properties

    batchPropagationEnabled?: boolean

    Whether 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.

    false
    
    enabled?: boolean

    Whether to enable the plugin.

    true
    
    hooks?: { request?: (span?: Span, response?: anyObject) => any }

    Hooks to run before spans are finished.

    Type Declaration

    • Optionalrequest?: (span?: Span, response?: anyObject) => any

      Hook to execute just before the aws span finishes.

    measured?: boolean | { [key: string]: boolean }

    Whether 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.

    service?: any

    The service name to be used for this plugin.

    splitByAwsService?: boolean

    Whether to add a suffix to the service name so that each AWS service has its own service name.

    true