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

    Interface TracerOptions

    The options for constructing a new Tracer instance.

    interface TracerOptions {
        sessionId?: string;
        sink: Sink | BufferedSink;
        middlewares?: TraceMiddleware[];
        defaultLevel?: Level;
        service?: string;
        env?: string;
        region?: string;
    }
    Index

    Properties

    sessionId?: string

    An optional fixed session ID. If not provided, a new session ID will be generated automatically. A session ID is a unique identifier for a sequence of related traces.

    The destination that persists events, such as a file, browser console, or HTTP endpoint. The sink is responsible for writing events to the desired output.

    middlewares?: TraceMiddleware[]

    An array of middlewares to transform, sample, or drop events before they are sent to the sink. Middlewares are executed in the order they are provided.

    defaultLevel?: Level

    The default log level to apply to emitted events. This can be overridden on a per-event basis.

    service?: string

    Optional environment tags that are propagated on each event. These tags provide context about the service, environment, and region where the event originated.

    env?: string
    region?: string