Share via


AzureMonitorExporterHelperExtensions.AddAzureMonitorTraceExporter Method

Definition

Registers an Azure Monitor trace exporter that will receive Activity instances.

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

Parameters

builder
OpenTelemetry.Trace.TracerProviderBuilder

OpenTelemetry.Trace.TracerProviderBuilder builder to use.

configure
Action<AzureMonitorExporterOptions>

Exporter configuration options.

Returns

OpenTelemetry.Trace.TracerProviderBuilder

The instance of OpenTelemetry.Trace.TracerProviderBuilder to chain the calls.

Applies to