Skip to content

Commit e7719b5

Browse files
lmolkovaxrmx
andauthored
Update instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py
Co-authored-by: Riccardo Magliocchetti <[email protected]>
1 parent 70eed99 commit e7719b5

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434

3535
def is_content_enabled() -> bool:
3636
capture_content = environ.get(
37-
OTEL_INSTRUMENTATION_OPENAI_CAPTURE_MESSAGE_CONTENT, None
37+
OTEL_INSTRUMENTATION_OPENAI_CAPTURE_MESSAGE_CONTENT, "false"
3838
)
3939

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

4242

4343
def extract_tool_calls(item, capture_content):

0 commit comments

Comments
 (0)