Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
RulaKhaled committed Dec 2, 2025
commit dcbcee520915723d8c365d9b3b51bbfe2db74664
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as Sentry from '@sentry/node';
import { loggingTransport } from '@sentry-internal/node-integration-tests';

Sentry.init({
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
tracesSampleRate: 1.0,
sendDefaultPii: false,
transport: loggingTransport,
integrations: [Sentry.openAIIntegration()],
});
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ Sentry.init({
recordOutputs: true,
}),
],
beforeSendTransaction: event => {
if (event.transaction.includes('/openai/')) {
return null;
}
return event;
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ Sentry.init({
sendDefaultPii: true,
transport: loggingTransport,
integrations: [Sentry.openAIIntegration()],
beforeSendTransaction: event => {
if (event.transaction.includes('/openai/')) {
return null;
}
return event;
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ Sentry.init({
sendDefaultPii: false,
transport: loggingTransport,
integrations: [Sentry.openAIIntegration()],
beforeSendTransaction: event => {
if (event.transaction.includes('/openai/')) {
return null;
}
return event;
},
});
Loading
Loading