Skip to content

Commit 8b8995c

Browse files
committed
test: fix span attributes formatting.
1 parent b564008 commit 8b8995c

File tree

1 file changed

+3
-3
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content

1 file changed

+3
-3
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/nonstreaming_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,19 +360,19 @@ def test_new_semconv_record_completion_in_span(self):
360360
span.attributes[
361361
gen_ai_attributes.GEN_AI_INPUT_MESSAGES
362362
],
363-
'[{"role": "user", "parts": [{"content": "Some input", "type": "text"}]}]',
363+
'[{"role":"user","parts":[{"content":"Some input","type":"text"}]}]',
364364
)
365365
self.assertEqual(
366366
span.attributes[
367367
gen_ai_attributes.GEN_AI_OUTPUT_MESSAGES
368368
],
369-
'[{"role": "assistant", "parts": [{"content": "Some response content", "type": "text"}], "finish_reason": ""}]',
369+
'[{"role":"assistant","parts":[{"content":"Some response content","type":"text"}],"finish_reason":""}]',
370370
)
371371
self.assertEqual(
372372
span.attributes[
373373
gen_ai_attributes.GEN_AI_SYSTEM_INSTRUCTIONS
374374
],
375-
'[{"content": "System instruction", "type": "text"}]',
375+
'[{"content":"System instruction","type":"text"}]',
376376
)
377377
else:
378378
self.assertNotIn(

0 commit comments

Comments
 (0)