Skip to content

Commit 033bdce

Browse files
committed
Restore defaultDbStatementSerializer export and move its test to server-utils
The export was dropped when index.ts was split into exports.ts, which broke the redis-common test. It is published public API, so removing it is breaking. The test was relocated into packages/core with a cross-package relative import; it belongs next to the code it tests.
1 parent 313d70f commit 033bdce

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/server-utils/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export { instrumentPrisma, prismaIntegration } from './prisma';
1616
export type { PrismaInstrumentationConfig, PrismaOptions } from './prisma';
1717
export { redisIntegration, type RedisDiagnosticChannelsOptions } from './redis';
1818
export type { RedisDiagnosticChannelResponseHook } from './redis/redis-dc-subscriber';
19+
export { defaultDbStatementSerializer } from './redis/redis-statement-serializer';
1920
export { bindTracingChannelToSpan } from './tracing-channel';
2021
export type {
2122
SentryTracingChannel,

packages/core/test/integrations/redis/redis-common.test.ts renamed to packages/server-utils/test/redis/redis-common.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Licensed under the Apache License, Version 2.0
55
*/
66

7-
import { defaultDbStatementSerializer } from '../../../../server-utils/src/redis/redis-statement-serializer';
87
import { describe, expect, it } from 'vitest';
8+
import { defaultDbStatementSerializer } from '../../src/redis/redis-statement-serializer';
99

1010
describe('defaultDbStatementSerializer()', () => {
1111
const testCases: Array<{

0 commit comments

Comments
 (0)