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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET