mongodb.d.ts 651 B

123456789101112131415161718192021
  1. import { BasePlugin, Span } from '@opencensus/core';
  2. export declare type MongoPluginConfig = {
  3. detailedCommands: boolean;
  4. };
  5. export declare class MongoDBPlugin extends BasePlugin {
  6. protected options: MongoPluginConfig;
  7. protected readonly internalFileList: {
  8. '1 - 3': {
  9. 'ConnectionPool': string;
  10. };
  11. };
  12. constructor(moduleName: string);
  13. protected applyPatch(): any;
  14. applyUnpatch(): void;
  15. private getPatchCommand;
  16. private getPatchCursor;
  17. private getPatchEventEmitter;
  18. patchEnd(span: Span, resultHandler: Function): Function;
  19. }
  20. declare const plugin: MongoDBPlugin;
  21. export { plugin };