UNPKG

@opentelemetry/instrumentation-mongoose

Version:

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

7 lines 698 B
import { Attributes, Span } from '@opentelemetry/api'; import type { Collection } from 'mongoose'; import { MongooseResponseCustomAttributesFunction } from './types'; export declare function getAttributesFromCollection(collection: Collection): Attributes; export declare function handlePromiseResponse(execResponse: any, span: Span, responseHook?: MongooseResponseCustomAttributesFunction, moduleVersion?: string | undefined): any; export declare function handleCallbackResponse(callback: Function, exec: Function, originalThis: any, span: Span, args: IArguments, responseHook?: MongooseResponseCustomAttributesFunction, moduleVersion?: string | undefined): any; //# sourceMappingURL=utils.d.ts.map