dotnet add package OpenTelemetry.Exporter.Zipkin
You can configure the ZipkinExporter
with the following options
in ZipkinExporterOptions
:
ServiceName
: Name of the service reporting telemetry. If theResource
associated with the telemetry has "service.name" defined, then it'll be preferred over this option.Endpoint
: URI address to receive telemetry.UseShortTraceIds
: Whether the trace's ID should be shortened before sending to Zipkin (default false).MaxPayloadSizeInBytes
: Maximum payload size - for .NET versions other than 4.5.2 (default 4096).
See
TestZipkinExporter.cs
for example use.