Skip to content

Commit 70eed99

Browse files
committed
use string comparison instead of bool(str)
1 parent 22594cc commit 70eed99

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def is_content_enabled() -> bool:
3737
OTEL_INSTRUMENTATION_OPENAI_CAPTURE_MESSAGE_CONTENT, None
3838
)
3939

40-
return bool(capture_content)
40+
return capture_content.lower() == "true" if capture_content else False
4141

4242

4343
def extract_tool_calls(item, capture_content):

0 commit comments

Comments
 (0)