Files
klz-cables.com/.pnpm-store/v10/files/44/fa32420322dc1863255b93f3fafab4478073b0c4b8597a67de5e6a9a09e45699e159c1fd03537d63c4308f361adec99fbb95072842a5c721ee20e6ec1472c3
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

65 lines
2.1 KiB
Plaintext

import type * as pgTypes from 'pg';
import type * as api from '@opentelemetry/api';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface PgResponseHookInformation {
data: pgTypes.QueryResult | pgTypes.QueryArrayResult;
}
export interface PgInstrumentationExecutionResponseHook {
(span: api.Span, responseInfo: PgResponseHookInformation): void;
}
export interface PgRequestHookInformation {
query: {
text: string;
name?: string;
values?: unknown[];
};
connection: {
database?: string;
host?: string;
port?: number;
user?: string;
};
}
export interface PgInstrumentationExecutionRequestHook {
(span: api.Span, queryInfo: PgRequestHookInformation): void;
}
export interface PgInstrumentationConfig extends InstrumentationConfig {
/**
* If true, an attribute containing the query's parameters will be attached
* the spans generated to represent the query.
*/
enhancedDatabaseReporting?: boolean;
/**
* Hook that allows adding custom span attributes or updating the
* span's name based on the data about the query to execute.
*
* @default undefined
*/
requestHook?: PgInstrumentationExecutionRequestHook;
/**
* Hook that allows adding custom span attributes based on the data
* returned from "query" Pg actions.
*
* @default undefined
*/
responseHook?: PgInstrumentationExecutionResponseHook;
/**
* If true, requires a parent span to create new spans.
*
* @default false
*/
requireParentSpan?: boolean;
/**
* If true, queries are modified to also include a comment with
* the tracing context, following the {@link https://github.com/open-telemetry/opentelemetry-sqlcommenter sqlcommenter} format
*/
addSqlCommenterCommentToQueries?: boolean;
/**
* If true, `pg.connect` and `pg-pool.connect` spans will not be created.
* Query spans and pool metrics are still recorded.
*
* @default false
*/
ignoreConnectSpans?: boolean;
}
//# sourceMappingURL=types.d.ts.map