@accordkit/tracer - v0.2.1
    Preparing search index...

    Type Alias TraceMiddleware<E>

    TraceMiddleware: (e: E) => E | null | Promise<E | 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.

    Type Parameters

    Type Declaration

      • (e: E): E | null | Promise<E | null>
      • Parameters

        • e: E

          The incoming event.

        Returns E | null | Promise<E | null>

        The processed event, a new event, or null to drop the event.