A function that processes a trace event.
Middleware can be used to enrich, transform, filter, or drop events before they are sent to a sink. It can operate synchronously or asynchronously.
The incoming event.
The processed event, a new event, or null to drop the event.
null
A function that processes a trace event.
Middleware can be used to enrich, transform, filter, or drop events before they are sent to a sink. It can operate synchronously or asynchronously.