Skip to content

Commit 366bf42

Browse files
Copilottrask
andcommitted
Update GenAI test descriptions to match semantic conventions
Co-authored-by: trask <[email protected]>
1 parent f191807 commit 366bf42

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

instrumentation/aws-sdk/aws-sdk-2.2/library/src/testBedrockRuntime/java/io/opentelemetry/instrumentation/awssdk/v2_2/internal/Aws2BedrockRuntimeTest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void testConverseToolCallNoMessageContent() {
179179
metric
180180
.hasName("gen_ai.client.token.usage")
181181
.hasUnit("{token}")
182-
.hasDescription("Measures number of input and output tokens used.")
182+
.hasDescription("Number of input and output tokens used.")
183183
.hasHistogramSatisfying(
184184
histogram ->
185185
histogram.hasPointsSatisfying(
@@ -333,7 +333,7 @@ void testConverseToolCallNoMessageContent() {
333333
metric
334334
.hasName("gen_ai.client.token.usage")
335335
.hasUnit("{token}")
336-
.hasDescription("Measures number of input and output tokens used.")
336+
.hasDescription("Number of input and output tokens used.")
337337
.hasHistogramSatisfying(
338338
histogram ->
339339
histogram.hasPointsSatisfying(
@@ -562,7 +562,7 @@ void testConverseToolCallStreamNoMessageContent()
562562
metric
563563
.hasName("gen_ai.client.token.usage")
564564
.hasUnit("{token}")
565-
.hasDescription("Measures number of input and output tokens used.")
565+
.hasDescription("Number of input and output tokens used.")
566566
.hasHistogramSatisfying(
567567
histogram ->
568568
histogram.hasPointsSatisfying(
@@ -735,7 +735,7 @@ void testConverseToolCallStreamNoMessageContent()
735735
metric
736736
.hasName("gen_ai.client.token.usage")
737737
.hasUnit("{token}")
738-
.hasDescription("Measures number of input and output tokens used.")
738+
.hasDescription("Number of input and output tokens used.")
739739
.hasHistogramSatisfying(
740740
histogram ->
741741
histogram.hasPointsSatisfying(
@@ -1011,7 +1011,7 @@ void testInvokeModelToolCallAmazonNovaNoMessageContent() {
10111011
metric
10121012
.hasName("gen_ai.client.token.usage")
10131013
.hasUnit("{token}")
1014-
.hasDescription("Measures number of input and output tokens used.")
1014+
.hasDescription("Number of input and output tokens used.")
10151015
.hasHistogramSatisfying(
10161016
histogram ->
10171017
histogram.hasPointsSatisfying(
@@ -1193,7 +1193,7 @@ void testInvokeModelToolCallAmazonNovaNoMessageContent() {
11931193
metric
11941194
.hasName("gen_ai.client.token.usage")
11951195
.hasUnit("{token}")
1196-
.hasDescription("Measures number of input and output tokens used.")
1196+
.hasDescription("Number of input and output tokens used.")
11971197
.hasHistogramSatisfying(
11981198
histogram ->
11991199
histogram.hasPointsSatisfying(
@@ -1489,7 +1489,7 @@ public void accept(PayloadPart chunk) {
14891489
metric
14901490
.hasName("gen_ai.client.token.usage")
14911491
.hasUnit("{token}")
1492-
.hasDescription("Measures number of input and output tokens used.")
1492+
.hasDescription("Number of input and output tokens used.")
14931493
.hasHistogramSatisfying(
14941494
histogram ->
14951495
histogram.hasPointsSatisfying(
@@ -1714,7 +1714,7 @@ public void accept(PayloadPart chunk) {
17141714
metric
17151715
.hasName("gen_ai.client.token.usage")
17161716
.hasUnit("{token}")
1717-
.hasDescription("Measures number of input and output tokens used.")
1717+
.hasDescription("Number of input and output tokens used.")
17181718
.hasHistogramSatisfying(
17191719
histogram ->
17201720
histogram.hasPointsSatisfying(
@@ -1941,7 +1941,7 @@ void testInvokeModelToolCallAnthropicClaudeNoMessageContent() {
19411941
metric
19421942
.hasName("gen_ai.client.token.usage")
19431943
.hasUnit("{token}")
1944-
.hasDescription("Measures number of input and output tokens used.")
1944+
.hasDescription("Number of input and output tokens used.")
19451945
.hasHistogramSatisfying(
19461946
histogram ->
19471947
histogram.hasPointsSatisfying(
@@ -2101,7 +2101,7 @@ void testInvokeModelToolCallAnthropicClaudeNoMessageContent() {
21012101
metric
21022102
.hasName("gen_ai.client.token.usage")
21032103
.hasUnit("{token}")
2104-
.hasDescription("Measures number of input and output tokens used.")
2104+
.hasDescription("Number of input and output tokens used.")
21052105
.hasHistogramSatisfying(
21062106
histogram ->
21072107
histogram.hasPointsSatisfying(
@@ -2400,7 +2400,7 @@ public void accept(PayloadPart chunk) {
24002400
metric
24012401
.hasName("gen_ai.client.token.usage")
24022402
.hasUnit("{token}")
2403-
.hasDescription("Measures number of input and output tokens used.")
2403+
.hasDescription("Number of input and output tokens used.")
24042404
.hasHistogramSatisfying(
24052405
histogram ->
24062406
histogram.hasPointsSatisfying(
@@ -2600,7 +2600,7 @@ public void accept(PayloadPart chunk) {
26002600
metric
26012601
.hasName("gen_ai.client.token.usage")
26022602
.hasUnit("{token}")
2603-
.hasDescription("Measures number of input and output tokens used.")
2603+
.hasDescription("Number of input and output tokens used.")
26042604
.hasHistogramSatisfying(
26052605
histogram ->
26062606
histogram.hasPointsSatisfying(

instrumentation/aws-sdk/aws-sdk-2.2/testing/src/main/java/io/opentelemetry/instrumentation/awssdk/v2_2/AbstractAws2BedrockRuntimeTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void testConverseBasic() {
154154
metric
155155
.hasName("gen_ai.client.token.usage")
156156
.hasUnit("{token}")
157-
.hasDescription("Measures number of input and output tokens used.")
157+
.hasDescription("Number of input and output tokens used.")
158158
.hasHistogramSatisfying(
159159
histogram ->
160160
histogram.hasPointsSatisfying(
@@ -289,7 +289,7 @@ void testConverseOptions() {
289289
metric
290290
.hasName("gen_ai.client.token.usage")
291291
.hasUnit("{token}")
292-
.hasDescription("Measures number of input and output tokens used.")
292+
.hasDescription("Number of input and output tokens used.")
293293
.hasHistogramSatisfying(
294294
histogram ->
295295
histogram.hasPointsSatisfying(
@@ -433,7 +433,7 @@ void testConverseToolCall() {
433433
metric
434434
.hasName("gen_ai.client.token.usage")
435435
.hasUnit("{token}")
436-
.hasDescription("Measures number of input and output tokens used.")
436+
.hasDescription("Number of input and output tokens used.")
437437
.hasHistogramSatisfying(
438438
histogram ->
439439
histogram.hasPointsSatisfying(
@@ -601,7 +601,7 @@ void testConverseToolCall() {
601601
metric
602602
.hasName("gen_ai.client.token.usage")
603603
.hasUnit("{token}")
604-
.hasDescription("Measures number of input and output tokens used.")
604+
.hasDescription("Number of input and output tokens used.")
605605
.hasHistogramSatisfying(
606606
histogram ->
607607
histogram.hasPointsSatisfying(
@@ -850,7 +850,7 @@ void testConverseToolCallStream() throws InterruptedException, ExecutionExceptio
850850
metric
851851
.hasName("gen_ai.client.token.usage")
852852
.hasUnit("{token}")
853-
.hasDescription("Measures number of input and output tokens used.")
853+
.hasDescription("Number of input and output tokens used.")
854854
.hasHistogramSatisfying(
855855
histogram ->
856856
histogram.hasPointsSatisfying(
@@ -1037,7 +1037,7 @@ void testConverseToolCallStream() throws InterruptedException, ExecutionExceptio
10371037
metric
10381038
.hasName("gen_ai.client.token.usage")
10391039
.hasUnit("{token}")
1040-
.hasDescription("Measures number of input and output tokens used.")
1040+
.hasDescription("Number of input and output tokens used.")
10411041
.hasHistogramSatisfying(
10421042
histogram ->
10431043
histogram.hasPointsSatisfying(
@@ -1265,7 +1265,7 @@ void testConverseStream() throws InterruptedException, ExecutionException {
12651265
metric
12661266
.hasName("gen_ai.client.token.usage")
12671267
.hasUnit("{token}")
1268-
.hasDescription("Measures number of input and output tokens used.")
1268+
.hasDescription("Number of input and output tokens used.")
12691269
.hasHistogramSatisfying(
12701270
histogram ->
12711271
histogram.hasPointsSatisfying(
@@ -1501,7 +1501,7 @@ void testInvokeModelAmazonTitan() {
15011501
metric
15021502
.hasName("gen_ai.client.token.usage")
15031503
.hasUnit("{token}")
1504-
.hasDescription("Measures number of input and output tokens used.")
1504+
.hasDescription("Number of input and output tokens used.")
15051505
.hasHistogramSatisfying(
15061506
histogram ->
15071507
histogram.hasPointsSatisfying(
@@ -1666,7 +1666,7 @@ void testInvokeModelWithResponseStreamAmazonTitan()
16661666
metric
16671667
.hasName("gen_ai.client.token.usage")
16681668
.hasUnit("{token}")
1669-
.hasDescription("Measures number of input and output tokens used.")
1669+
.hasDescription("Number of input and output tokens used.")
16701670
.hasHistogramSatisfying(
16711671
histogram ->
16721672
histogram.hasPointsSatisfying(
@@ -1840,7 +1840,7 @@ void testInvokeModelAmazonNova() {
18401840
metric
18411841
.hasName("gen_ai.client.token.usage")
18421842
.hasUnit("{token}")
1843-
.hasDescription("Measures number of input and output tokens used.")
1843+
.hasDescription("Number of input and output tokens used.")
18441844
.hasHistogramSatisfying(
18451845
histogram ->
18461846
histogram.hasPointsSatisfying(
@@ -2022,7 +2022,7 @@ void testInvokeModelWithResponseStreamAmazonNova()
20222022
metric
20232023
.hasName("gen_ai.client.token.usage")
20242024
.hasUnit("{token}")
2025-
.hasDescription("Measures number of input and output tokens used.")
2025+
.hasDescription("Number of input and output tokens used.")
20262026
.hasHistogramSatisfying(
20272027
histogram ->
20282028
histogram.hasPointsSatisfying(
@@ -2180,7 +2180,7 @@ void testInvokeModelAnthropicClaude() {
21802180
metric
21812181
.hasName("gen_ai.client.token.usage")
21822182
.hasUnit("{token}")
2183-
.hasDescription("Measures number of input and output tokens used.")
2183+
.hasDescription("Number of input and output tokens used.")
21842184
.hasHistogramSatisfying(
21852185
histogram ->
21862186
histogram.hasPointsSatisfying(
@@ -2601,7 +2601,7 @@ void testInvokeModelWithResponseStreamAnthropicClaude()
26012601
metric
26022602
.hasName("gen_ai.client.token.usage")
26032603
.hasUnit("{token}")
2604-
.hasDescription("Measures number of input and output tokens used.")
2604+
.hasDescription("Number of input and output tokens used.")
26052605
.hasHistogramSatisfying(
26062606
histogram ->
26072607
histogram.hasPointsSatisfying(
@@ -2811,7 +2811,7 @@ void testInvokeModelToolCallAmazonNova() {
28112811
metric
28122812
.hasName("gen_ai.client.token.usage")
28132813
.hasUnit("{token}")
2814-
.hasDescription("Measures number of input and output tokens used.")
2814+
.hasDescription("Number of input and output tokens used.")
28152815
.hasHistogramSatisfying(
28162816
histogram ->
28172817
histogram.hasPointsSatisfying(
@@ -3007,7 +3007,7 @@ void testInvokeModelToolCallAmazonNova() {
30073007
metric
30083008
.hasName("gen_ai.client.token.usage")
30093009
.hasUnit("{token}")
3010-
.hasDescription("Measures number of input and output tokens used.")
3010+
.hasDescription("Number of input and output tokens used.")
30113011
.hasHistogramSatisfying(
30123012
histogram ->
30133013
histogram.hasPointsSatisfying(
@@ -3324,7 +3324,7 @@ public void accept(PayloadPart chunk) {
33243324
metric
33253325
.hasName("gen_ai.client.token.usage")
33263326
.hasUnit("{token}")
3327-
.hasDescription("Measures number of input and output tokens used.")
3327+
.hasDescription("Number of input and output tokens used.")
33283328
.hasHistogramSatisfying(
33293329
histogram ->
33303330
histogram.hasPointsSatisfying(
@@ -3563,7 +3563,7 @@ public void accept(PayloadPart chunk) {
35633563
metric
35643564
.hasName("gen_ai.client.token.usage")
35653565
.hasUnit("{token}")
3566-
.hasDescription("Measures number of input and output tokens used.")
3566+
.hasDescription("Number of input and output tokens used.")
35673567
.hasHistogramSatisfying(
35683568
histogram ->
35693569
histogram.hasPointsSatisfying(
@@ -3812,7 +3812,7 @@ void testInvokeModelToolCallAnthropicClaude() {
38123812
metric
38133813
.hasName("gen_ai.client.token.usage")
38143814
.hasUnit("{token}")
3815-
.hasDescription("Measures number of input and output tokens used.")
3815+
.hasDescription("Number of input and output tokens used.")
38163816
.hasHistogramSatisfying(
38173817
histogram ->
38183818
histogram.hasPointsSatisfying(
@@ -3986,7 +3986,7 @@ void testInvokeModelToolCallAnthropicClaude() {
39863986
metric
39873987
.hasName("gen_ai.client.token.usage")
39883988
.hasUnit("{token}")
3989-
.hasDescription("Measures number of input and output tokens used.")
3989+
.hasDescription("Number of input and output tokens used.")
39903990
.hasHistogramSatisfying(
39913991
histogram ->
39923992
histogram.hasPointsSatisfying(
@@ -4309,7 +4309,7 @@ public void accept(PayloadPart chunk) {
43094309
metric
43104310
.hasName("gen_ai.client.token.usage")
43114311
.hasUnit("{token}")
4312-
.hasDescription("Measures number of input and output tokens used.")
4312+
.hasDescription("Number of input and output tokens used.")
43134313
.hasHistogramSatisfying(
43144314
histogram ->
43154315
histogram.hasPointsSatisfying(
@@ -4523,7 +4523,7 @@ public void accept(PayloadPart chunk) {
45234523
metric
45244524
.hasName("gen_ai.client.token.usage")
45254525
.hasUnit("{token}")
4526-
.hasDescription("Measures number of input and output tokens used.")
4526+
.hasDescription("Number of input and output tokens used.")
45274527
.hasHistogramSatisfying(
45284528
histogram ->
45294529
histogram.hasPointsSatisfying(

0 commit comments

Comments
 (0)