LiveMetricsExtensions.AddLiveMetrics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds Live Metrics to the TracerProvider.
public static OpenTelemetry.Trace.TracerProviderBuilder AddLiveMetrics(this OpenTelemetry.Trace.TracerProviderBuilder builder, Action<Azure.Monitor.OpenTelemetry.LiveMetrics.LiveMetricsExporterOptions> configure = default, string name = default);
static member AddLiveMetrics : OpenTelemetry.Trace.TracerProviderBuilder * Action<Azure.Monitor.OpenTelemetry.LiveMetrics.LiveMetricsExporterOptions> * string -> OpenTelemetry.Trace.TracerProviderBuilder
<Extension()>
Public Function AddLiveMetrics (builder As TracerProviderBuilder, Optional configure As Action(Of LiveMetricsExporterOptions) = Nothing, Optional name As String = Nothing) As TracerProviderBuilder
Parameters
- builder
- OpenTelemetry.Trace.TracerProviderBuilder
OpenTelemetry.Trace.TracerProviderBuilder builder to use.
- configure
- Action<LiveMetricsExporterOptions>
Callback action for configuring LiveMetricsExporterOptions.
- name
- String
Name which is used when retrieving options.
Returns
OpenTelemetry.Trace.TracerProviderBuilder
The instance of OpenTelemetry.Trace.TracerProviderBuilder to chain the calls.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET