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

    Interface SpanToken

    A lightweight token representing an in-flight span. This token is returned from Tracer.spanStart and should be passed to Tracer.spanEnd to complete the span. It contains the trace context and other metadata associated with the span.

    interface SpanToken {
        ctx: { traceId: string; spanId: string; parentSpanId?: string };
        operation: string;
        service?: string;
        env?: string;
        region?: string;
        t0: number;
        attrs?: Record<string, unknown>;
    }
    Index

    Properties

    ctx: { traceId: string; spanId: string; parentSpanId?: string }

    The trace context associated with this span. This should be reused on related events to link them to the same trace.

    operation: string

    The name of the operation being traced (e.g., db.query, http.request).

    service?: string

    The name of the service where the operation is taking place (e.g., user-service, payment-service).

    env?: string

    The name of the environment where the service is running (e.g., dev, prod).

    region?: string

    The name of the region where the service is located (e.g., us-east-1, eu-west-1).

    t0: number

    The start time of the span in milliseconds since the epoch.

    attrs?: Record<string, unknown>

    A record of attributes captured at the start of the span.