UNPKG

928 BTypeScriptView Raw
1interface RedisOptions {
2 cachePrefixes?: string[];
3}
4/** To be able to preload all Redis OTel instrumentations with just one ID ("Redis"), all the instrumentations are generated in this one function */
5export declare const instrumentRedis: (() => void) & {
6 id: string;
7};
8/**
9 * Adds Sentry tracing instrumentation for the [redis](https://www.npmjs.com/package/redis) and
10 * [ioredis](https://www.npmjs.com/package/ioredis) libraries.
11 *
12 * For more information, see the [`redisIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/redis/).
13 *
14 * @example
15 * ```javascript
16 * const Sentry = require('@sentry/node');
17 *
18 * Sentry.init({
19 * integrations: [Sentry.redisIntegration()],
20 * });
21 * ```
22 */
23export declare const redisIntegration: (options?: RedisOptions | undefined) => import("@sentry/core").Integration;
24export {};
25//# sourceMappingURL=redis.d.ts.map
\No newline at end of file