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

51 lines
1.7 KiB
Plaintext

import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { Span } from '@opentelemetry/api';
export interface MongoDBInstrumentationExecutionResponseHook {
(span: Span, responseInfo: MongoResponseHookInformation): void;
}
/**
* Function that can be used to serialize db.statement tag
* @param cmd - MongoDB command object
*
* @returns serialized string that will be used as the db.statement attribute.
*/
export type DbStatementSerializer = (cmd: Record<string, unknown>) => string;
export interface MongoDBInstrumentationConfig extends InstrumentationConfig {
/**
* If true, additional information about query parameters and
* results will be attached (as `attributes`) to spans representing
* database operations.
*/
enhancedDatabaseReporting?: boolean;
/**
* Hook that allows adding custom span attributes based on the data
* returned from MongoDB actions.
*
* @default undefined
*/
responseHook?: MongoDBInstrumentationExecutionResponseHook;
/**
* Custom serializer function for the db.statement tag
*/
dbStatementSerializer?: DbStatementSerializer;
/**
* Require parent to create mongodb span, default when unset is true
*/
requireParentSpan?: boolean;
}
export interface MongoResponseHookInformation {
data: CommandResult;
}
export type CommandResult = {
result?: unknown;
connection?: unknown;
message?: unknown;
};
export declare enum MongodbCommandType {
CREATE_INDEXES = "createIndexes",
FIND_AND_MODIFY = "findAndModify",
IS_MASTER = "isMaster",
COUNT = "count",
UNKNOWN = "unknown"
}
//# sourceMappingURL=types.d.ts.map