Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(sentry): stop recording AI prompts and outputs

Enno Gelhaus42bc85edc1a2
diff --git a/libraries/nestjs-libraries/src/sentry/initialize.sentry.ts b/libraries/nestjs-libraries/src/sentry/initialize.sentry.ts
index 8b7a1a87e..b75eae72c 100644
--- a/libraries/nestjs-libraries/src/sentry/initialize.sentry.ts
+++ b/libraries/nestjs-libraries/src/sentry/initialize.sentry.ts
@@ -50,9 +50,10 @@ export const initializeSentry = (appName: string, allowLogs = false) => {
// Add our Profiling integration
nodeProfilingIntegration(),
Sentry.consoleLoggingIntegration({ levels: ['log', 'info', 'warn', 'error', 'debug', 'assert', 'trace'] }),
+ // AI calls are traced for timing and errors only; prompts and outputs are users' content and stay out.
Sentry.openAIIntegration({
- recordInputs: true,
- recordOutputs: true,
+ recordInputs: false,
+ recordOutputs: false,
}),
],
tracesSampler: ({ name, attributes, normalizedRequest, inheritOrSampleWith }) => {