TraceSinkService

interface TraceSinkService

All processes can forward trace events to this service.

The service forwards all received events to one or more TraceDrainService listeners. This allows trace event processing regardless of the process that generates the trace event.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val hasDrain: Boolean

Is true when the sink has a drain. In other words, true when TraceDrainService client has a listener that handles events.

Functions

Link copied to clipboard
abstract suspend fun consumeTraceEvent(traceEvent: MarshalledTraceEvent)

The given traceEvent is put into the sink and progressed to the drainage.