Skip to content

Commit 0f21211

Browse files
committed
fixup! fixup! feat(deno): redis diagnostics channel based integration for deno (#21087)
1 parent fcc2244 commit 0f21211

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/node/src/integrations/tracing/redis/vendored/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface RedisInstrumentationConfig extends InstrumentationConfig {
5656

5757
// ---- ioredis types ----
5858

59-
export type CommandArgs = Array<string | Buffer | number | any[]>;
59+
export type CommandArgs = Array<string | Uint8Array | Buffer | number | any[]>;
6060

6161
/**
6262
* Function that can be used to serialize db.statement tag for ioredis

packages/node/src/utils/redisCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type IORedisCommandArgs = Array<string | Buffer | number | unknown[]>;
1+
export type IORedisCommandArgs = Array<string | Buffer | Uint8Array | number | unknown[]>;
22

33
const SINGLE_ARG_COMMANDS = ['get', 'set', 'setex'];
44

@@ -37,7 +37,7 @@ export function getCacheKeySafely(redisCommand: string, cmdArgs: IORedisCommandA
3737
}
3838

3939
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40-
const processArg = (arg: string | Buffer | number | any[]): string[] => {
40+
const processArg = (arg: string | Buffer | Uint8Array | number | any[]): string[] => {
4141
if (typeof arg === 'string' || typeof arg === 'number' || Buffer.isBuffer(arg)) {
4242
return [arg.toString()];
4343
} else if (Array.isArray(arg)) {

0 commit comments

Comments
 (0)