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.
toString, which the service logs at INFO each time it starts and stops, shows only the collector URL's scheme, host, port and path. A collector that needs a key takes it in the URL, usually in the query string, so the user info, query and fragment are left out, and a URL that cannot be parsed is shown as <unparseable URL>.
Constructors
Link copied to clipboard
constructor(url: String, defaultServiceName: String = "unknown", initBlock: ZipkinReporterService.() -> Unit = {})
Creates a reporter that sends spans to the Zipkin collector at url.