Skip to content

SpanEventMapper

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

interface SpanEventMapper : EventMapper<SpanEvent>

An interface which can be implemented to modify the writable attributes inside a SpanEvent.

Functions

map

abstract override fun map(event: SpanEvent): SpanEvent

By implementing this method you can intercept and modify the writable attributes inside any event SpanEvent before it gets serialised.

Return

the modified event SpanEvent. If the object returned has a different reference than the object which was passed to the function, it will be dropped and will not be serialised.

Parameters
event the event to be serialised
Clone this wiki locally