ZipkinReporterService
A Guava GenericIdleService that manages a Zipkin span reporter lifecycle.
Creates an OkHttpSender and AsyncReporter for sending trace spans to a Zipkin server, and provides a factory method for creating Tracing instances bound to this reporter. Stopping the service sends the spans still queued before closing the reporter.
Constructors
Link copied to clipboard
constructor(url: String, defaultServiceName: String = DEFAULT_SERVICE_NAME, initBlock: ZipkinReporterService.() -> Unit = {})
Creates a reporter that sends spans to the Zipkin collector at url.