次の方法で共有


OpenTelemetryTextToSpeechClientBuilderExtensions.UseOpenTelemetry メソッド

定義

生成 AI システムの OpenTelemetry セマンティック規則に従って、テキスト読み上げクライアント パイプラインに OpenTelemetry のサポートを追加します。

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

パラメーター

loggerFactory
ILoggerFactory

イベントをログ記録するためのロガーの作成に使用する省略可能な ILoggerFactory

sourceName
String

テレメトリ データで使用されるオプションのソース名。

configure
Action<OpenTelemetryTextToSpeechClient>

OpenTelemetryTextToSpeechClient インスタンスの構成に使用できる省略可能なコールバック。

返品

builder

注釈

この後のドラフト仕様は、 https://opentelemetry.io/docs/specs/semconv/gen-ai/で入手できます。 仕様はまだ実験的であり、変更される可能性があります。そのため、このクライアントによるテレメトリ出力も変更される可能性があります。

適用対象