1.3 KiB
1.3 KiB
OTLP Exporter for OpenTelemetry .NET
The OTLP (OpenTelemetry Protocol) exporter communicates to an OpenTelemetry Collector through a gRPC protocol.
Prerequisite
Installation
dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol
Configuration
You can configure the OtlpExporter by following the directions below:
Endpoint: Target to which the exporter is going to send traces or metrics.Credentials: Client-side channel credentials.Headers: Optional headers for the connection.
See the
TestOtlpExporter.cs
for an example of how to use the exporter.