Skip to content

Commit b81b712

Browse files
committed
one more
1 parent 79b6301 commit b81b712

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/utils/google-genai

1 file changed

+2
-2
lines changed

packages/core/src/utils/google-genai/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function addResponseAttributes(span: Span, response: GoogleGenAIResponse, record
196196
function getRecordingOptionsFromIntegration(): GoogleGenAIOptions {
197197
const client = getClient();
198198
const integration = client?.getIntegrationByName<GoogleGenAIIntegration>(GOOGLE_GENAI_INTEGRATION_NAME);
199-
const shouldRecordInputsAndOutputs = integration ? Boolean(client?.getOptions().sendDefaultPii) : false;
199+
const shouldRecordInputsAndOutputs = Boolean(client?.getOptions().sendDefaultPii);
200200

201201
return {
202202
recordInputs: integration?.options?.recordInputs ?? shouldRecordInputsAndOutputs,
@@ -246,7 +246,7 @@ function instrumentMethod<T extends unknown[], R>(
246246
result => {
247247
// Only add response attributes for content-producing methods, not for chats.create
248248
if (!isSyncCreate) {
249-
addResponseAttributes(span, result as GoogleGenAIResponse, finalOptions.recordOutputs);
249+
addResponseAttributes(span, result, finalOptions.recordOutputs);
250250
}
251251
},
252252
);

0 commit comments

Comments
 (0)