2 instantiations of OpenTelemetryChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
35var chatClient = new OpenTelemetryChatClient(innerClient, loggerFactory?.CreateLogger(typeof(OpenTelemetryChatClient)), sourceName);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
465new OpenTelemetryChatClient(c, sourceName: sourceName)));
10 references to OpenTelemetryChatClient
Microsoft.Extensions.AI (6)
ChatCompletion\OpenTelemetryChatClient.cs (1)
47/// <summary>Initializes a new instance of the <see cref="OpenTelemetryChatClient"/> class.</summary>
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (5)
11/// <summary>Provides extensions for configuring <see cref="OpenTelemetryChatClient"/> instances.</summary> 24/// <param name="configure">An optional callback that can be used to configure the <see cref="OpenTelemetryChatClient"/> instance.</param> 30Action<OpenTelemetryChatClient>? configure = null) => 35var chatClient = new OpenTelemetryChatClient(innerClient, loggerFactory?.CreateLogger(typeof(OpenTelemetryChatClient)), sourceName);
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
90Assert.NotNull(pipeline.GetService<OpenTelemetryChatClient>());
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
61Assert.NotNull(pipeline.GetService<OpenTelemetryChatClient>());
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
108Assert.NotNull(pipeline.GetService<OpenTelemetryChatClient>()); 133Assert.NotNull(pipeline.GetService<OpenTelemetryChatClient>());