OTLP Logging Reference

Since version 2.2.0, dnsdist can send OpenTelemetry traces with OTLP over HTTP.

Using OTLP directly allows for easy integration of dnsdist in existing observability infrastructure.

newOtlpLogger(address[, options])

Added in version 2.2.0.

Create an OTLP logger object, to use with SetTraceAction(), RemoteLogAction(), RemoteLogResponseAction(), and setOpenTelemetryInternalTrace().

Parameters:
  • address (string) – The URL of the endpoint. Must contain the scheme (http, https) and the path (like /v1/traces)

  • options (table) – A table with key: value pairs with options

The following options can be set:

  • batchSize: Maximum number of traces to send to the endpoint in a single batch, default 100.

  • httpFastOpen: Whether or not to use TCP fast-open, default is false.

  • httpTimeout: Timeout in seconds for the connection to establish, default is 2.

  • httpsVerify: Verify SSL/TLS certificate when connecting, default is true.

  • interval: Interval in seconds to wait before sending the next batch of OTLP messages, 5 by default.

  • queueSize: Maximum number of traces in the backlog, default is 500.