File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Connectors.AzureOpenAI.UnitTests/KernelCore
Connectors.OpenAI.UnitTests/KernelCore Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft. All rights reserved.
2
2
3
3
using System ;
4
+ using System . Collections . Concurrent ;
4
5
using System . Collections . Generic ;
5
6
using System . Diagnostics . Metrics ;
6
7
using System . Net . Http ;
@@ -63,7 +64,7 @@ public async Task FunctionUsageMetricsAreCapturedByTelemetryAsExpected()
63
64
using MeterListener listener = new ( ) ;
64
65
var isPublished = false ;
65
66
66
- var measurements = new Dictionary < string , List < long > >
67
+ var measurements = new Dictionary < string , ConcurrentBag < long > >
67
68
{
68
69
[ "semantic_kernel.function.invocation.token_usage.prompt" ] = [ ] ,
69
70
[ "semantic_kernel.function.invocation.token_usage.completion" ] = [ ] ,
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft. All rights reserved.
2
2
3
3
using System ;
4
+ using System . Collections . Concurrent ;
4
5
using System . Collections . Generic ;
5
6
using System . Diagnostics . Metrics ;
6
7
using System . Net . Http ;
@@ -64,7 +65,7 @@ public async Task FunctionUsageMetricsAreCapturedByTelemetryAsExpected()
64
65
using MeterListener listener = new ( ) ;
65
66
var isPublished = false ;
66
67
67
- var measurements = new Dictionary < string , List < long > >
68
+ var measurements = new Dictionary < string , ConcurrentBag < long > >
68
69
{
69
70
[ "semantic_kernel.function.invocation.token_usage.prompt" ] = [ ] ,
70
71
[ "semantic_kernel.function.invocation.token_usage.completion" ] = [ ] ,
You can’t perform that action at this time.
0 commit comments