Compartilhar via


AzureMonitorExporterHelperExtensions.AddAzureMonitorTraceExporter Método

Definição

Registra um exportador de rastreamento do Azure Monitor que receberá Activity instâncias.

public static OpenTelemetry.Trace.TracerProviderBuilder AddAzureMonitorTraceExporter (this OpenTelemetry.Trace.TracerProviderBuilder builder, Action<Microsoft.OpenTelemetry.Exporter.AzureMonitor.AzureMonitorExporterOptions> configure = default);
static member AddAzureMonitorTraceExporter : OpenTelemetry.Trace.TracerProviderBuilder * Action<Microsoft.OpenTelemetry.Exporter.AzureMonitor.AzureMonitorExporterOptions> -> OpenTelemetry.Trace.TracerProviderBuilder
<Extension()>
Public Function AddAzureMonitorTraceExporter (builder As TracerProviderBuilder, Optional configure As Action(Of AzureMonitorExporterOptions) = Nothing) As TracerProviderBuilder

Parâmetros

builder
OpenTelemetry.Trace.TracerProviderBuilder

OpenTelemetry.Trace.TracerProviderBuilder construtor a ser usado.

configure
Action<AzureMonitorExporterOptions>

Opções de configuração do exportador.

Retornos

OpenTelemetry.Trace.TracerProviderBuilder

A instância do OpenTelemetry.Trace.TracerProviderBuilder para encadear as chamadas.

Aplica-se a