@@ -123,13 +123,6 @@ it('tracks success', () => {
123
123
) ;
124
124
tracker . trackSuccess ( ) ;
125
125
126
- expect ( mockTrack ) . toHaveBeenCalledWith (
127
- '$ld:ai:generation' ,
128
- testContext ,
129
- { configKey, variationKey, version } ,
130
- 1 ,
131
- ) ;
132
-
133
126
expect ( mockTrack ) . toHaveBeenCalledWith (
134
127
'$ld:ai:generation:success' ,
135
128
testContext ,
@@ -167,13 +160,6 @@ it('tracks OpenAI usage', async () => {
167
160
1000 ,
168
161
) ;
169
162
170
- expect ( mockTrack ) . toHaveBeenCalledWith (
171
- '$ld:ai:generation' ,
172
- testContext ,
173
- { configKey, variationKey, version } ,
174
- 1 ,
175
- ) ;
176
-
177
163
expect ( mockTrack ) . toHaveBeenCalledWith (
178
164
'$ld:ai:generation:success' ,
179
165
testContext ,
@@ -234,13 +220,6 @@ it('tracks error when OpenAI metrics function throws', async () => {
234
220
1000 ,
235
221
) ;
236
222
237
- expect ( mockTrack ) . toHaveBeenCalledWith (
238
- '$ld:ai:generation' ,
239
- testContext ,
240
- { configKey, variationKey, version } ,
241
- 1 ,
242
- ) ;
243
-
244
223
expect ( mockTrack ) . toHaveBeenCalledWith (
245
224
'$ld:ai:generation:error' ,
246
225
testContext ,
@@ -281,13 +260,6 @@ it('tracks Bedrock conversation with successful response', () => {
281
260
282
261
tracker . trackBedrockConverseMetrics ( response ) ;
283
262
284
- expect ( mockTrack ) . toHaveBeenCalledWith (
285
- '$ld:ai:generation' ,
286
- testContext ,
287
- { configKey, variationKey, version } ,
288
- 1 ,
289
- ) ;
290
-
291
263
expect ( mockTrack ) . toHaveBeenCalledWith (
292
264
'$ld:ai:generation:success' ,
293
265
testContext ,
@@ -346,13 +318,7 @@ it('tracks Bedrock conversation with error response', () => {
346
318
347
319
tracker . trackBedrockConverseMetrics ( response ) ;
348
320
349
- expect ( mockTrack ) . toHaveBeenCalledTimes ( 2 ) ;
350
- expect ( mockTrack ) . toHaveBeenCalledWith (
351
- '$ld:ai:generation' ,
352
- testContext ,
353
- { configKey, variationKey, version } ,
354
- 1 ,
355
- ) ;
321
+ expect ( mockTrack ) . toHaveBeenCalledTimes ( 1 ) ;
356
322
357
323
expect ( mockTrack ) . toHaveBeenCalledWith (
358
324
'$ld:ai:generation:error' ,
@@ -399,13 +365,6 @@ describe('Vercel AI SDK generateText', () => {
399
365
1000 ,
400
366
) ;
401
367
402
- expect ( mockTrack ) . toHaveBeenCalledWith (
403
- '$ld:ai:generation' ,
404
- testContext ,
405
- { configKey, variationKey, version } ,
406
- 1 ,
407
- ) ;
408
-
409
368
expect ( mockTrack ) . toHaveBeenCalledWith (
410
369
'$ld:ai:generation:success' ,
411
370
testContext ,
@@ -466,13 +425,6 @@ describe('Vercel AI SDK generateText', () => {
466
425
1000 ,
467
426
) ;
468
427
469
- expect ( mockTrack ) . toHaveBeenCalledWith (
470
- '$ld:ai:generation' ,
471
- testContext ,
472
- { configKey, variationKey, version } ,
473
- 1 ,
474
- ) ;
475
-
476
428
expect ( mockTrack ) . toHaveBeenCalledWith (
477
429
'$ld:ai:generation:error' ,
478
430
testContext ,
@@ -532,13 +484,6 @@ describe('Vercel AI SDK streamText', () => {
532
484
1000 ,
533
485
) ;
534
486
535
- expect ( mockTrack ) . toHaveBeenCalledWith (
536
- '$ld:ai:generation' ,
537
- testContext ,
538
- { configKey, variationKey, version } ,
539
- 1 ,
540
- ) ;
541
-
542
487
expect ( mockTrack ) . toHaveBeenCalledWith (
543
488
'$ld:ai:generation:success' ,
544
489
testContext ,
@@ -599,13 +544,6 @@ describe('Vercel AI SDK streamText', () => {
599
544
1000 ,
600
545
) ;
601
546
602
- expect ( mockTrack ) . toHaveBeenCalledWith (
603
- '$ld:ai:generation' ,
604
- testContext ,
605
- { configKey, variationKey, version } ,
606
- 1 ,
607
- ) ;
608
-
609
547
expect ( mockTrack ) . toHaveBeenCalledWith (
610
548
'$ld:ai:generation:error' ,
611
549
testContext ,
@@ -644,13 +582,6 @@ describe('Vercel AI SDK streamText', () => {
644
582
1000 ,
645
583
) ;
646
584
647
- expect ( mockTrack ) . toHaveBeenCalledWith (
648
- '$ld:ai:generation' ,
649
- testContext ,
650
- { configKey, variationKey, version } ,
651
- 1 ,
652
- ) ;
653
-
654
585
expect ( mockTrack ) . toHaveBeenCalledWith (
655
586
'$ld:ai:generation:error' ,
656
587
testContext ,
@@ -689,13 +620,6 @@ describe('Vercel AI SDK streamText', () => {
689
620
1000 ,
690
621
) ;
691
622
692
- expect ( mockTrack ) . toHaveBeenCalledWith (
693
- '$ld:ai:generation' ,
694
- testContext ,
695
- { configKey, variationKey, version } ,
696
- 1 ,
697
- ) ;
698
-
699
623
expect ( mockTrack ) . toHaveBeenCalledWith (
700
624
'$ld:ai:generation:error' ,
701
625
testContext ,
@@ -735,13 +659,6 @@ describe('Vercel AI SDK streamText', () => {
735
659
1000 ,
736
660
) ;
737
661
738
- expect ( mockTrack ) . toHaveBeenCalledWith (
739
- '$ld:ai:generation' ,
740
- testContext ,
741
- { configKey, variationKey, version } ,
742
- 1 ,
743
- ) ;
744
-
745
662
expect ( mockTrack ) . toHaveBeenCalledWith (
746
663
'$ld:ai:generation:success' ,
747
664
testContext ,
@@ -926,13 +843,6 @@ it('tracks error', () => {
926
843
) ;
927
844
tracker . trackError ( ) ;
928
845
929
- expect ( mockTrack ) . toHaveBeenCalledWith (
930
- '$ld:ai:generation' ,
931
- testContext ,
932
- { configKey, variationKey, version } ,
933
- 1 ,
934
- ) ;
935
-
936
846
expect ( mockTrack ) . toHaveBeenCalledWith (
937
847
'$ld:ai:generation:error' ,
938
848
testContext ,
0 commit comments