addEvent

abstract fun addEvent(name: String, attributes: Map<String, String> = emptyMap()): Span

Add an event (annotation) to this span.

Return

This span for chaining

Parameters

name

Event name

attributes

Optional event attributes


abstract fun addEvent(name: String, timestamp: Instant, attributes: Map<String, String> = emptyMap()): Span

Add an event with timestamp.