diff --git a/packages/cloudflare/src/index.ts b/packages/cloudflare/src/index.ts index fb4a9bf84882..61707365fafd 100644 --- a/packages/cloudflare/src/index.ts +++ b/packages/cloudflare/src/index.ts @@ -127,7 +127,7 @@ export { fetchIntegration } from './integrations/fetch'; export { vercelAIIntegration } from './integrations/tracing/vercelai'; export { honoIntegration } from './integrations/hono'; -export { instrumentD1WithSentry } from './d1'; +export { instrumentD1WithSentry } from './instrumentations/worker/instrumentD1'; export { instrumentWorkflowWithSentry } from './workflows'; diff --git a/packages/cloudflare/src/d1.ts b/packages/cloudflare/src/instrumentations/worker/instrumentD1.ts similarity index 100% rename from packages/cloudflare/src/d1.ts rename to packages/cloudflare/src/instrumentations/worker/instrumentD1.ts diff --git a/packages/cloudflare/test/d1.test.ts b/packages/cloudflare/test/instrumentations/worker/instrumentD1.test.ts similarity index 98% rename from packages/cloudflare/test/d1.test.ts rename to packages/cloudflare/test/instrumentations/worker/instrumentD1.test.ts index bc1ecc105052..376ebef9e322 100644 --- a/packages/cloudflare/test/d1.test.ts +++ b/packages/cloudflare/test/instrumentations/worker/instrumentD1.test.ts @@ -1,7 +1,7 @@ import type { D1Database, D1PreparedStatement } from '@cloudflare/workers-types'; import * as SentryCore from '@sentry/core'; import { beforeEach, describe, expect, test, vi } from 'vitest'; -import { instrumentD1WithSentry } from '../src/d1'; +import { instrumentD1WithSentry } from '../../../src/instrumentations/worker/instrumentD1'; const MOCK_FIRST_RETURN_VALUE = { id: 1, name: 'Foo' };