Share via


OpenTelemetryChatClientBuilderExtensions.UseOpenTelemetry Method

Definition

public static Microsoft.Extensions.AI.ChatClientBuilder UseOpenTelemetry (this Microsoft.Extensions.AI.ChatClientBuilder builder, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, string? sourceName = default, Action<Microsoft.Extensions.AI.OpenTelemetryChatClient>? configure = default);
static member UseOpenTelemetry : Microsoft.Extensions.AI.ChatClientBuilder * Microsoft.Extensions.Logging.ILoggerFactory * string * Action<Microsoft.Extensions.AI.OpenTelemetryChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
<Extension()>
Public Function UseOpenTelemetry (builder As ChatClientBuilder, Optional loggerFactory As ILoggerFactory = Nothing, Optional sourceName As String = Nothing, Optional configure As Action(Of OpenTelemetryChatClient) = Nothing) As ChatClientBuilder

Parameters

loggerFactory
ILoggerFactory
sourceName
String

Returns

Applies to