Skip to content

Commit 016aa22

Browse files
authored
update otel test
1 parent 7501d23 commit 016aa22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aiservices/openai/src/test/java/com/microsoft/semantickernel/aiservices/openai/OtelCaptureTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ public void otelChatCaptureTest() {
118118
spans.get(0).getAttributes().get(AttributeKey.stringKey("gen_ai.system")));
119119
Assertions.assertEquals(21,
120120
spans.get(0).getAttributes()
121-
.get(AttributeKey.longKey("gen_ai.response.completion_tokens")));
121+
.get(AttributeKey.longKey("gen_ai.usage.output_tokens")));
122122
Assertions.assertEquals(42,
123123
spans.get(0).getAttributes()
124-
.get(AttributeKey.longKey("gen_ai.response.prompt_tokens")));
124+
.get(AttributeKey.longKey("gen_ai.usage.input_tokens")));
125125
}
126126
}

0 commit comments

Comments
 (0)