@opentelemetry/instrumentation-mysql
Version:
OpenTelemetry instrumentation for `mysql` database client for MySQL
22 lines • 897 B
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { MySQLInstrumentationConfig } from './types';
export declare class MySQLInstrumentation extends InstrumentationBase<MySQLInstrumentationConfig> {
static readonly COMMON_ATTRIBUTES: {
"db.system": string;
};
private _connectionsUsage;
constructor(config?: MySQLInstrumentationConfig);
protected _updateMetricInstruments(): void;
protected init(): InstrumentationNodeModuleDefinition[];
private _patchCreateConnection;
private _patchCreatePool;
private _patchPoolEnd;
private _patchCreatePoolCluster;
private _patchAdd;
private _patchGetConnection;
private _getConnectionCallbackPatchFn;
private _patchQuery;
private _patchCallbackQuery;
private _setPoolcallbacks;
}
//# sourceMappingURL=instrumentation.d.ts.map