18 lines
1.1 KiB
TypeScript
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
|