dotnet add package OpenTelemetry.Exporter.Zipkin
You can enable the the ZipkinExporter
with the AddZipkinExporter()
.
You can configure the ZipkinExporter
through
ZipkinExporterOptions
properties:
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 (defaulthttp://localhost:9411/api/v2/spans
).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).ExportProcessorType
: Whether the exporter should use Batch or Simple exporting processor .BatchExportProcessorOptions
: Configuration options for the batch exporter. Only used if ExportProcessorType is set to Batch.
See
TestZipkinExporter.cs
for example use.