redis.d.ts 666 B

12345678910111213141516171819
  1. import { BasePlugin, Span } from '@opencensus/core';
  2. import * as redis from 'redis';
  3. export declare type Redis = typeof redis;
  4. export declare type IgnoreMatcher = string | RegExp;
  5. export declare type RedisPluginConfig = {
  6. detailedCommands: boolean;
  7. };
  8. export declare class RedisPlugin extends BasePlugin {
  9. protected options: RedisPluginConfig;
  10. constructor(moduleName: string);
  11. protected applyPatch(): any;
  12. applyUnpatch(): void;
  13. private getPatchCreateStream;
  14. private getPatchCreateClient;
  15. private getPatchSendCommand;
  16. patchEnd(span: Span, resultHandler: Function): Function;
  17. }
  18. declare const plugin: RedisPlugin;
  19. export { plugin };