Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ import * as Sentry from '@sentry/node';
import { loggingTransport } from '@sentry-internal/node-integration-tests';

Sentry.init({
traceLifecycle: 'static',
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
tracesSampleRate: 1.0,
dataCollection: { genAI: { inputs: false, outputs: false } },
integrations: [Sentry.mastraIntegration({ bootstrapObservability: false })],
transport: loggingTransport,
beforeSendTransaction: event => {
// Drop the in-process mock provider's own transactions.
return event.transaction?.includes('/v1/chat/completions') ? null : event;
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import * as Sentry from '@sentry/node';
import { loggingTransport } from '@sentry-internal/node-integration-tests';

Sentry.init({
traceLifecycle: 'static',
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
tracesSampleRate: 1.0,
dataCollection: { genAI: { inputs: true, outputs: true } },
transport: loggingTransport,
beforeSendTransaction: event => {
// Drop the in-process mock provider's own transactions.
return event.transaction?.includes('/v1/chat/completions') ? null : event;
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import * as Sentry from '@sentry/node';
import { loggingTransport } from '@sentry-internal/node-integration-tests';

Sentry.init({
traceLifecycle: 'static',
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
tracesSampleRate: 1.0,
dataCollection: { genAI: { inputs: false, outputs: false } },
transport: loggingTransport,
beforeSendTransaction: event => {
// Drop the in-process mock provider's own transactions.
return event.transaction?.includes('/v1/chat/completions') ? null : event;
},
});
Loading
Loading