Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/server-utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * from './exports';

// Exports using diagnostics channels
export { mongooseIntegration } from './mongoose';
export { mysql2Integration } from './mysql2';
export { instrumentPrisma, prismaIntegration } from './prisma';
export type { PrismaInstrumentationConfig, PrismaOptions } from './prisma';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as diagnosticsChannel from 'node:diagnostics_channel';
import type { IntegrationFn, Span } from '@sentry/core';
import { defineIntegration, getActiveSpan, waitForTracingChannelBinding } from '@sentry/core';
import { subscribeMongooseDiagnosticChannels } from '../mongoose/mongoose-dc-subscriber';
import type { MongooseLegacyCollection } from '../mongoose/mongoose-legacy-span';
import { startMongooseLegacySpan } from '../mongoose/mongoose-legacy-span';
import { CHANNELS } from '../orchestrion/channels';
import { MONGOOSE_CONTEXT_CAPTURE_CHANNELS } from '../orchestrion/config/mongoose';
import type { SentryTracingChannel } from '../tracing-channel';
import { bindTracingChannelToSpan } from '../tracing-channel';
import { mongooseModuleNames } from '../orchestrion/config/mongoose';
import { invokeOrchestrionInstrumentation } from '../orchestrion/instrumentation';
import { subscribeMongooseDiagnosticChannels } from './mongoose-dc-subscriber';
import type { MongooseLegacyCollection } from './mongoose-legacy-span';
import { startMongooseLegacySpan } from './mongoose-legacy-span';
import { CHANNELS } from '../../orchestrion/channels';
import { MONGOOSE_CONTEXT_CAPTURE_CHANNELS } from '../../orchestrion/config/mongoose';
import type { SentryTracingChannel } from '../../tracing-channel';
import { bindTracingChannelToSpan } from '../../tracing-channel';
import { mongooseModuleNames } from '../../orchestrion/config/mongoose';
import { invokeOrchestrionInstrumentation } from '../../orchestrion/instrumentation';

const INTEGRATION_NAME = 'Mongoose' as const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
startInactiveSpan,
} from '@sentry/core';
import { DEBUG_BUILD } from '../debug-build';
import { bindTracingChannelToSpan } from '../tracing-channel';
import { DEBUG_BUILD } from '../../debug-build';
import { bindTracingChannelToSpan } from '../../tracing-channel';

// Channel names published by mongoose >= 9.7.0 (see mongoose `lib/tracing.js`,
// `lib/query.js`, `lib/aggregate.js`, `lib/model.js` and `lib/cursor/*`).
Expand Down
33 changes: 0 additions & 33 deletions packages/server-utils/src/mongoose/index.ts

This file was deleted.

Loading