We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74727d commit 3e244eeCopy full SHA for 3e244ee
samples/ChatWithTools/Program.cs
@@ -8,7 +8,6 @@
8
using Microsoft.Extensions.Logging;
9
using OpenTelemetry.Logs;
10
using OpenTelemetry.Metrics;
11
-using ModelContextProtocol.Protocol.Types;
12
13
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
14
.AddHttpClientInstrumentation()
@@ -47,12 +46,9 @@
47
46
}
48
49
},
50
- clientOptions: new McpClientOptions()
+ clientOptions: new()
51
{
52
- Capabilities = new ClientCapabilities()
53
- {
54
- Sampling = new SamplingCapability() { SamplingHandler = samplingClient.CreateSamplingHandler() }
55
- },
+ Capabilities = new() { Sampling = new() { SamplingHandler = samplingClient.CreateSamplingHandler() } },
56
57
loggerFactory: loggerFactory);
58
0 commit comments