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

7 lines
698 B
TypeScript

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