Skip to content

Commit e23162f

Browse files
committed
rename shouldRecordInputsAndOutputs
1 parent 40f53c5 commit e23162f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/node/src/integrations/tracing/vercelai/instrumentation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ export class SentryVercelAiInstrumentation extends InstrumentationBase {
7373
const isEnabled = existingExperimentalTelemetry.isEnabled;
7474

7575
const client = getCurrentScope().getClient();
76-
const shouldRecordImportAndExports = client?.getIntegrationByName(INTEGRATION_NAME)
76+
const shouldRecordInputsAndOutputs = client?.getIntegrationByName(INTEGRATION_NAME)
7777
? client.getOptions().sendDefaultPii
7878
: false;
7979

8080
// Set recordInputs and recordOutputs based on sendDefaultPii if not explicitly set
8181
const recordInputs =
8282
existingExperimentalTelemetry.recordInputs !== undefined
8383
? existingExperimentalTelemetry.recordInputs
84-
: shouldRecordImportAndExports;
84+
: shouldRecordInputsAndOutputs;
8585
const recordOutputs =
8686
existingExperimentalTelemetry.recordOutputs !== undefined
8787
? existingExperimentalTelemetry.recordOutputs
88-
: shouldRecordImportAndExports;
88+
: shouldRecordInputsAndOutputs;
8989

9090
args[0].experimental_telemetry = {
9191
...existingExperimentalTelemetry,

0 commit comments

Comments
 (0)