Files
klz-cables.com/.pnpm-store/v10/files/84/d12d97fc5561fd903663ac18f9c1ecfc88832da2e890795cfc1c2bccd97cd82f35478c8f6b1aef690e92a1a0590c8e629e0c81278649d79f9c1c3d0c468232
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

36 lines
1.6 KiB
Plaintext

import { Span } from '@opentelemetry/api';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface SerializerPayload {
condition?: any;
options?: any;
updates?: any;
document?: any;
aggregatePipeline?: any;
fields?: any;
documents?: any;
operations?: any;
}
export type DbStatementSerializer = (operation: string, payload: SerializerPayload) => string;
export interface ResponseInfo {
moduleVersion: string | undefined;
response: any;
}
export type MongooseResponseCustomAttributesFunction = (span: Span, responseInfo: ResponseInfo) => void;
export interface MongooseInstrumentationConfig extends InstrumentationConfig {
/**
* Mongoose operation use mongodb under the hood.
* If mongodb instrumentation is enabled, a mongoose operation will also create
* a mongodb operation describing the communication with mongoDB servers.
* Setting the `suppressInternalInstrumentation` config value to `true` will
* cause the instrumentation to suppress instrumentation of underlying operations,
* effectively causing mongodb spans to be non-recordable.
*/
suppressInternalInstrumentation?: boolean;
/** Custom serializer function for the db.statement tag */
dbStatementSerializer?: DbStatementSerializer;
/** hook for adding custom attributes using the response payload */
responseHook?: MongooseResponseCustomAttributesFunction;
/** Set to true if you do not want to collect traces that start with mongoose */
requireParentSpan?: boolean;
}
//# sourceMappingURL=types.d.ts.map