DatadogTracingAppender

constructor(service: String, agentUrl: String = "http://localhost:8126", batchSize: Int = 100, batchTimeout: Duration = 2.seconds, env: String? = null, version: String? = null, spanType: String = "custom", engine: HttpClientEngine? = null)(source)

Parameters

service

The Datadog service name the spans are reported under.

agentUrl

Base URL of the local Datadog Agent. Defaults to http://localhost:8126.

batchSize

Maximum number of spans per request. Defaults to 100.

batchTimeout

Maximum time to hold an incomplete batch. Defaults to 2 seconds.

env

Optional env tag applied to every span.

version

Optional version tag applied to every span.

spanType

Datadog span type (e.g. web, db, custom). Defaults to custom.

engine

Optional Ktor HttpClientEngine. When null, the engine available on the classpath is used.