Dela via


LiveMetricsExtensions.AddLiveMetrics Method

Definition

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