AutoOpenTelemetryEvents

fun <NODE : Any> AutoOpenTelemetryEvents(json: AutoMarshallingJson<NODE>, openTelemetry: OpenTelemetry = GlobalOpenTelemetry.get()): Events(source)

Bridges http4k Events to OpenTelemetry. When there is an active span, events are emitted as span events (visible inline on the span in OTel backends). Otherwise, falls back to log records.