Skip to content

Commit 3e244ee

Browse files
committed
more nits
1 parent f74727d commit 3e244ee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

samples/ChatWithTools/Program.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.Extensions.Logging;
99
using OpenTelemetry.Logs;
1010
using OpenTelemetry.Metrics;
11-
using ModelContextProtocol.Protocol.Types;
1211

1312
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
1413
.AddHttpClientInstrumentation()
@@ -47,12 +46,9 @@
4746
}
4847

4948
},
50-
clientOptions: new McpClientOptions()
49+
clientOptions: new()
5150
{
52-
Capabilities = new ClientCapabilities()
53-
{
54-
Sampling = new SamplingCapability() { SamplingHandler = samplingClient.CreateSamplingHandler() }
55-
},
51+
Capabilities = new() { Sampling = new() { SamplingHandler = samplingClient.CreateSamplingHandler() } },
5652
},
5753
loggerFactory: loggerFactory);
5854

0 commit comments

Comments
 (0)