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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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,
dataCollection: { genAI: { inputs: false, outputs: false } },
transport: loggingTransport,
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Sentry.init({
dsn: 'https://public@dsn.ingest.sentry.io/1337',
release: '1.0',
tracesSampleRate: 1.0,
// `NO_RECORDING` turns off recording of inputs and outputs for the privacy test.
dataCollection: process.env.NO_RECORDING ? { genAI: { inputs: false, outputs: false } } : {},
dataCollection: {},
transport: loggingTransport,
});
Original file line number Diff line number Diff line change
Expand Up @@ -1069,10 +1069,21 @@ describe('Vercel AI integration experimental_evaluate', () => {
.start()
.completed();
});
},
{
additionalDependencies: {
ai: '^7.0.111',
},
},
);

createEsmTests(
__dirname,
'scenario-evaluate.mjs',
'instrument-evaluate-no-recording.mjs',
(createRunner, test) => {
test('does not record inputs or outputs when recording is off', async () => {
await createRunner()
.withEnv({ NO_RECORDING: 'true' })
.unordered()
.expect({
span: container => {
Expand Down
Loading