Skip to content

Commit 22594cc

Browse files
committed
ruff
1 parent 887ffc6 commit 22594cc

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
"OTEL_INSTRUMENTATION_OPENAI_CAPTURE_MESSAGE_CONTENT"
3232
)
3333

34+
3435
def is_content_enabled() -> bool:
3536
capture_content = environ.get(
3637
OTEL_INSTRUMENTATION_OPENAI_CAPTURE_MESSAGE_CONTENT, None
3738
)
3839

3940
return bool(capture_content)
4041

42+
4143
def extract_tool_calls(item, capture_content):
4244
tool_calls = get_property_value(item, "tool_calls")
4345
if tool_calls is None:

0 commit comments

Comments
 (0)