Files
tasq/node_modules/@opentelemetry/instrumentation-memcached/build/src/instrumentation.d.ts
T
2026-04-09 19:01:53 +08:00

18 lines
1.1 KiB
TypeScript

import * as api from '@opentelemetry/api';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import type * as Memcached from 'memcached';
import { InstrumentationConfig } from './types';
export declare class Instrumentation extends InstrumentationBase {
static readonly COMPONENT = "memcached";
static readonly COMMON_ATTRIBUTES: {
"db.system": string;
};
static readonly DEFAULT_CONFIG: InstrumentationConfig;
constructor(config?: InstrumentationConfig);
setConfig(config?: InstrumentationConfig): void;
init(): InstrumentationNodeModuleDefinition[];
wrapCommand(moduleVersion: undefined | string, original: (queryCompiler: () => Memcached.CommandData, server?: string) => any): (this: Memcached, queryCompiler: () => Memcached.CommandData, server?: string | undefined) => any;
wrapQueryCompiler(original: () => Memcached.CommandData, client: Memcached, server: undefined | string, callbackContext: api.Context, span: api.Span): (this: Memcached) => Memcached.CommandData;
private ensureWrapped;
}
//# sourceMappingURL=instrumentation.d.ts.map