UNPKG

@opentelemetry/instrumentation-mongoose

Version:

OpenTelemetry instrumentation for `mongoose` database object data modeling (ODM) library for MongoDB

18 lines 769 B
import { MongooseInstrumentationConfig } from './types'; import { InstrumentationBase, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation'; export declare const _STORED_PARENT_SPAN: unique symbol; export declare class MongooseInstrumentation extends InstrumentationBase<MongooseInstrumentationConfig> { constructor(config?: MongooseInstrumentationConfig); protected init(): InstrumentationModuleDefinition; private patch; private unpatch; private patchAggregateExec; private patchQueryExec; private patchOnModelMethods; private patchModelAggregate; private patchAndCaptureSpanContext; private _startSpan; private _handleResponse; private _callOriginalFunction; } //# sourceMappingURL=mongoose.d.ts.map