4 instantiations of OpenTelemetryChatClient
Aspire.OpenAI (1)
AspireOpenAIClientBuilderChatClientExtensions.cs (1)
59return builder.DisableTracing ? result : new OpenTelemetryChatClient(result);
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
35var chatClient = new OpenTelemetryChatClient(innerClient, loggerFactory?.CreateLogger(typeof(OpenTelemetryChatClient)), sourceName);
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
171new OpenTelemetryChatClient(_chatClient, sourceName: sourceName));
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
465new OpenTelemetryChatClient(c, sourceName: sourceName)));
12 references to OpenTelemetryChatClient
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (1)
190Assert.Equal(disableOpenTelemetry, client.GetService<OpenTelemetryChatClient>() is null);
Aspire.OpenAI.Tests (1)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (1)
191Assert.Equal(disableOpenTelemetry, client.GetService<OpenTelemetryChatClient>() is null);
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)
92Assert.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>());