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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET