AzureMonitorExporterHelperExtensions.AddAzureMonitorTraceExporter 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET