ZipkinConfig

data class ZipkinConfig(val enabled: Boolean, val hostname: String, val port: Int, val path: String, val serviceName: String, val scheme: String = "http")

Configuration data for connecting to a Zipkin distributed tracing server.

Used by ZipkinReporterService to construct the reporter URL and identify the service in traces. The URL is {scheme}://{hostname}:{port}/{path}.

Constructors

Link copied to clipboard
constructor(enabled: Boolean, hostname: String, port: Int, path: String, serviceName: String, scheme: String = "http")

Properties

Link copied to clipboard

Whether Zipkin tracing is enabled.

Link copied to clipboard

The hostname of the Zipkin server.

Link copied to clipboard

The URL path for the Zipkin API endpoint, with or without a leading slash.

Link copied to clipboard
val port: Int

The port of the Zipkin server.

Link copied to clipboard

The URL scheme spans are sent with: "http", the default, or "https" to send them over TLS, as a collector that accepts only HTTPS, or one reached over an untrusted network, needs: spans often hold URLs, SQL and user IDs. Either is accepted in any case; any other value fails the service's init method.

Link copied to clipboard

The name used to identify this service in Zipkin traces.