dd-trace
    Preparing search index...

    Interface postgres

    This plugin automatically instruments the Postgres.js module.

    interface postgres {
        appendComment?: boolean;
        dbmPropagationMode?: "full" | "service" | "disabled" | "dynamic_service";
        enabled?: boolean;
        measured?: boolean | { [key: string]: boolean };
        service?: string;
        truncate?: number | boolean;
    }
    Index
    appendComment?: boolean

    Appends the SQL comment propagation to the query string. Prepends the comment if false. For long query strings, the appended propagation comment might be truncated, causing loss of correlation between the query and trace.

    dbmPropagationMode?: "full" | "service" | "disabled" | "dynamic_service"

    The database monitoring propagation mode to be used for this plugin.

    enabled?: boolean

    Whether to enable the plugin.

    true
    
    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?: string

    The service name to be used for this plugin.

    truncate?: number | boolean

    Truncate the resource name (e.g. the query) to the given length. When set to true, truncates to 5000 characters (matching the Datadog agent's default). When set to a number, truncates to that many characters. This can help prevent large queries from blocking the event loop during trace encoding.

    false