dd-trace
    Preparing search index...

    Interface sharedb

    This plugin automatically instruments the sharedb module.

    interface sharedb {
        enabled?: boolean;
        hooks?: {
            receive?: (span?: Span, request?: any) => any;
            reply?: (span?: Span, request?: any, response?: any) => any;
        };
        service?: any;
    }
    Index

    Properties

    enabled?: boolean

    Whether to enable the plugin.

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

    Hooks to run before spans are finished.

    Type Declaration

    • Optionalreceive?: (span?: Span, request?: any) => any

      Hook to execute just when the span is created.

    • Optionalreply?: (span?: Span, request?: any, response?: any) => any

      Hook to execute just when the span is finished.

    service?: any

    The service name to be used for this plugin.