published on in news

Azure Monitor Exporter client library for .NET

The OpenTelemetry .NET exporters which send telemetry data to Azure Monitor following the OpenTelemetry Specification.

Getting started

Prerequisites

Install the package

Install the Azure Monitor Exporter for OpenTelemetry .NET with NuGet:

dotnet add package Azure.Monitor.OpenTelemetry.Exporter 

Authenticate the client

Exporter does not use authentication.

Key concepts

This exporter sends traces to the configured Azure Monitor Resource using HTTPS. IP addresses used by the Azure Monitor is documented in IP addresses used by Application Insights and Log Analytics.

Examples

Refer to DemoTrace.cs for a complete demo.

using Azure.Monitor.OpenTelemetry.Exporter; using OpenTelemetry.Trace; OpenTelemetry.Sdk.CreateTracerProviderBuilder() .AddSource("Demo.DemoClient") .AddAzureMonitorTraceExporter(o => { o.ConnectionString = "<Your Connection String>"; }) .Build(); 

Troubleshooting

This exporter logs event using the .NET EventSource to emit information. The exporter logs are available to any EventListener by opting into the source named "OpenTelemetry-TraceExporter-AzureMonitor".

Next steps

For more information on Azure SDK, please refer to this website

Contributing

See CONTRIBUTING.md for details on contribution process.

Release Schedule

This exporter is under active development.

The library is not yet generally available, and is not officially supported. Future releases will not attempt to maintain backwards compatibility with previous releases. Each beta release includes significant changes to the exporter package, making them incompatible with each other.

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnplonJ%2Bpu6bAjnqxrqqVY5qwusitpqtmf6Wyr6DEpZymnaSnxm%2BR16mmq6yVp3xyeo9nZ2aalamub36OoqWdnahjtbW5yw%3D%3D