Files
klz-cables.com/.pnpm-store/v10/files/4a/57111109b87f695f057a72ea287b31354b1f0b75096c49b6ce27847ec2bd7fc7905b07400cc5ae2b24c3e0446246977cf45af3a5890cbeb5ba8c9796fde888
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

42 lines
1.5 KiB
Plaintext

import { Attributes } from '@opentelemetry/api';
import type * as mysqlTypes from 'mysql2';
import { MySQL2InstrumentationQueryMaskingHook } from './types';
import { SemconvStability } from '@opentelemetry/instrumentation';
type formatType = typeof mysqlTypes.format;
interface QueryOptions {
sql: string;
values?: any | any[] | {
[param: string]: any;
};
}
interface Query {
sql: string;
}
interface Config {
host?: string;
port?: number;
database?: string;
user?: string;
connectionConfig?: Config;
}
/**
* Get an Attributes map from a mysql connection config object
*
* @param config ConnectionConfig
*/
export declare function getConnectionAttributes(config: Config, dbSemconvStability: SemconvStability, netSemconvStability: SemconvStability): Attributes;
/**
* Conjures up the value for the db.query.text attribute by formatting a SQL query.
*/
export declare function getQueryText(query: string | Query | QueryOptions, format?: formatType, values?: any[], maskStatement?: boolean, maskStatementHook?: MySQL2InstrumentationQueryMaskingHook): string;
/**
* The span name SHOULD be set to a low cardinality value
* representing the statement executed on the database.
*
* @returns SQL statement without variable arguments or SQL verb
*/
export declare function getSpanName(query: string | Query | QueryOptions): string;
export declare const once: (fn: Function) => (...args: unknown[]) => any;
export declare function getConnectionPrototypeToInstrument(connection: any): any;
export {};
//# sourceMappingURL=utils.d.ts.map