SpanEventMapper - DataDog/dd-sdk-android GitHub Wiki

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