Skip to content

Commit 55b78b2

Browse files
committed
fix: formatting and pylint issues in structured outputs
1 parent 7e263c2 commit 55b78b2

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

instrumentation-genai/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def _is_parse_supported():
122122
class OpenAIInstrumentor(BaseInstrumentor):
123123
def __init__(self):
124124
self._meter = None
125+
self._parse_supported = False
125126

126127
def instrumentation_dependencies(self) -> Collection[str]:
127128
return _instruments

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_async_structured_outputs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ async def test_async_structured_output_no_content(
148148
else:
149149
assert len(logs) == 2
150150

151-
assert_message_in_logs(
152-
logs[0], "gen_ai.user.message", None, spans[0]
153-
)
151+
assert_message_in_logs(logs[0], "gen_ai.user.message", None, spans[0])
154152

155153
choice_event = {
156154
"index": 0,

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/test_structured_outputs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ def test_structured_output_no_content(
136136
else:
137137
assert len(logs) == 2
138138

139-
assert_message_in_logs(
140-
logs[0], "gen_ai.user.message", None, spans[0]
141-
)
139+
assert_message_in_logs(logs[0], "gen_ai.user.message", None, spans[0])
142140

143141
choice_event = {
144142
"index": 0,

0 commit comments

Comments
 (0)