Skip to content

Commit 36842e0

Browse files
.
1 parent 1f6149e commit 36842e0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

sentry_sdk/integrations/openai.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,6 @@ def _set_completions_api_input_data(
389389
if top_p is not None and _is_given(top_p):
390390
set_data_normalized(span, SPANDATA.GEN_AI_REQUEST_TOP_P, top_p)
391391

392-
if not should_send_default_pii() or not integration.include_prompts:
393-
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "responses")
394-
return
395-
396392
if (
397393
not should_send_default_pii()
398394
or not integration.include_prompts
@@ -485,10 +481,6 @@ def _set_embeddings_input_data(
485481
if top_p is not None and _is_given(top_p):
486482
set_data_normalized(span, SPANDATA.GEN_AI_REQUEST_TOP_P, top_p)
487483

488-
if not should_send_default_pii() or not integration.include_prompts:
489-
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "responses")
490-
return
491-
492484
if (
493485
not should_send_default_pii()
494486
or not integration.include_prompts

0 commit comments

Comments
 (0)