OtlpTracingAppender
constructor(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)(source)
Parameters
service
The service.name resource attribute the spans are reported under.
endpoint
Base URL of the OTLP/HTTP endpoint (the standard /v1/traces path is appended). Defaults to http://localhost:4318.
batchSize
Maximum number of spans per request. Defaults to 100.
batchTimeout
Maximum time to hold an incomplete batch. Defaults to 2 seconds.
env
Optional deployment.environment.name resource attribute.
version
Optional service.version resource attribute.
headers
Extra HTTP headers for every request — most vendors authenticate this way (e.g. x-honeycomb-team, api-key, Authorization).
engine
Optional Ktor HttpClientEngine. When null, the engine available on the classpath is used.