Package-level declarations

Types

Link copied to clipboard
class OtlpTracingAppender(service: String, endpoint: String = "http://localhost:4318", batchSize: Int = 100, batchTimeout: Duration = 2.seconds, env: String? = null, version: String? = null, headers: Map<String, String> = emptyMap(), engine: HttpClientEngine? = null) : BatchAppender<TracingEvent>

An io.github.smyrgeorge.log4k.Appender that publishes finished spans over OTLP/HTTP (POST /v1/traces, JSON) — the vendor-neutral OpenTelemetry protocol accepted natively by most tracing backends: the OpenTelemetry Collector, Jaeger, Grafana Tempo, Honeycomb, the Datadog Agent's OTLP ingest, and many more. Register it with RootLogger.Tracing.appenders.register(...).