Skip to content

Commit c78c8b8

Browse files
authored
ref(cloudflare): Move D1 instrumentation (#21266)
This is only moving the D1 instrumentation into a new folder. This is a preparation step for #20862
1 parent 4940dd8 commit c78c8b8

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cloudflare/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export { fetchIntegration } from './integrations/fetch';
127127
export { vercelAIIntegration } from './integrations/tracing/vercelai';
128128
export { honoIntegration } from './integrations/hono';
129129

130-
export { instrumentD1WithSentry } from './d1';
130+
export { instrumentD1WithSentry } from './instrumentations/worker/instrumentD1';
131131

132132
export { instrumentWorkflowWithSentry } from './workflows';
133133

packages/cloudflare/src/d1.ts renamed to packages/cloudflare/src/instrumentations/worker/instrumentD1.ts

File renamed without changes.

packages/cloudflare/test/d1.test.ts renamed to packages/cloudflare/test/instrumentations/worker/instrumentD1.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { D1Database, D1PreparedStatement } from '@cloudflare/workers-types';
22
import * as SentryCore from '@sentry/core';
33
import { beforeEach, describe, expect, test, vi } from 'vitest';
4-
import { instrumentD1WithSentry } from '../src/d1';
4+
import { instrumentD1WithSentry } from '../../../src/instrumentations/worker/instrumentD1';
55

66
const MOCK_FIRST_RETURN_VALUE = { id: 1, name: 'Foo' };
77

0 commit comments

Comments
 (0)