@sentry/node 8.8.0 → 8.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/integrations/anr/index.js +1 -1
- package/cjs/integrations/anr/index.js.map +1 -1
- package/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/cjs/integrations/tracing/index.js +1 -0
- package/cjs/integrations/tracing/index.js.map +1 -1
- package/cjs/integrations/tracing/redis.js +66 -48
- package/cjs/integrations/tracing/redis.js.map +1 -1
- package/cjs/utils/redisCache.js +10 -5
- package/cjs/utils/redisCache.js.map +1 -1
- package/esm/integrations/anr/index.js +1 -1
- package/esm/integrations/anr/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/esm/integrations/local-variables/worker-script.js +1 -1
- package/esm/integrations/tracing/index.js +2 -1
- package/esm/integrations/tracing/index.js.map +1 -1
- package/esm/integrations/tracing/redis.js +67 -49
- package/esm/integrations/tracing/redis.js.map +1 -1
- package/esm/utils/redisCache.js +10 -6
- package/esm/utils/redisCache.js.map +1 -1
- package/package.json +8 -7
- package/types/integrations/tracing/index.d.ts.map +1 -1
- package/types/integrations/tracing/redis.d.ts +2 -1
- package/types/integrations/tracing/redis.d.ts.map +1 -1
- package/types/utils/redisCache.d.ts +3 -0
- package/types/utils/redisCache.d.ts.map +1 -1
- package/types-ts3.8/integrations/tracing/redis.d.ts +2 -1
- package/types-ts3.8/utils/redisCache.d.ts +3 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
interface RedisOptions {
|
|
2
2
|
cachePrefixes?: string[];
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
/** To be able to preload all Redis OTel instrumentations with just one ID ("Redis"), all the instrumentations are generated in this one function */
|
|
5
|
+
export declare const instrumentRedis: (() => void) & {
|
|
5
6
|
id: string;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/redis.ts"],"names":[],"mappings":"AAyBA,UAAU,YAAY;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AA8DD,qJAAqJ;AACrJ,eAAO,MAAM,eAAe,SACtB,IAAI;;CAQT,CAAC;AAYF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6EAAuC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { CommandArgs as IORedisCommandArgs } from '@opentelemetry/instrumentation-ioredis';
|
|
2
2
|
export declare const GET_COMMANDS: string[];
|
|
3
3
|
export declare const SET_COMMANDS: string[];
|
|
4
|
+
/** Checks if a given command is in the list of redis commands.
|
|
5
|
+
* Useful because commands can come in lowercase or uppercase (depending on the library). */
|
|
6
|
+
export declare function isInCommands(redisCommands: string[], command: string): boolean;
|
|
4
7
|
/** Determine cache operation based on redis statement */
|
|
5
8
|
export declare function getCacheOperation(command: string): 'cache.get' | 'cache.put' | 'cache.remove' | 'cache.flush' | undefined;
|
|
6
9
|
/** Safely converts a redis key to a string (comma-separated if there are multiple keys) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisCache.d.ts","sourceRoot":"","sources":["../../../src/utils/redisCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAKhG,eAAO,MAAM,YAAY,UAAkB,CAAC;AAC5C,eAAO,MAAM,YAAY,UAAmB,CAAC;AAG7C,yDAAyD;AACzD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GACd,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"redisCache.d.ts","sourceRoot":"","sources":["../../../src/utils/redisCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAKhG,eAAO,MAAM,YAAY,UAAkB,CAAC;AAC5C,eAAO,MAAM,YAAY,UAAmB,CAAC;AAG7C;6FAC6F;AAC7F,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9E;AAED,yDAAyD;AACzD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GACd,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,CAQxE;AAMD,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,MAAM,EAAE,GAAG,SAAS,CAyBzG;AAED;uEACuE;AACvE,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAWxG;AAED,wDAAwD;AACxD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAmB5E"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
interface RedisOptions {
|
|
2
2
|
cachePrefixes?: string[];
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
/** To be able to preload all Redis OTel instrumentations with just one ID ("Redis"), all the instrumentations are generated in this one function */
|
|
5
|
+
export declare const instrumentRedis: (() => void) & {
|
|
5
6
|
id: string;
|
|
6
7
|
};
|
|
7
8
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CommandArgs as IORedisCommandArgs } from '@opentelemetry/instrumentation-ioredis';
|
|
2
2
|
export declare const GET_COMMANDS: string[];
|
|
3
3
|
export declare const SET_COMMANDS: string[];
|
|
4
|
+
/** Checks if a given command is in the list of redis commands.
|
|
5
|
+
* Useful because commands can come in lowercase or uppercase (depending on the library). */
|
|
6
|
+
export declare function isInCommands(redisCommands: string[], command: string): boolean;
|
|
4
7
|
/** Determine cache operation based on redis statement */
|
|
5
8
|
export declare function getCacheOperation(command: string): 'cache.get' | 'cache.put' | 'cache.remove' | 'cache.flush' | undefined;
|
|
6
9
|
/** Safely converts a redis key to a string (comma-separated if there are multiple keys) */
|