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

    Type Alias SpanStartOptions

    The options for starting a new span.

    type SpanStartOptions = {
        operation: string;
        service?: string;
        env?: string;
        region?: string;
        attrs?: Record<string, unknown>;
        parent?:
            | SpanToken
            | { traceId: string; spanId: string }
            | { ctx: { traceId: string; spanId: string } };
    }
    Index

    Properties

    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).

    attrs?: Record<string, unknown>

    A record of attributes to associate with the span.

    parent?:
        | SpanToken
        | { traceId: string; spanId: string }
        | { ctx: { traceId: string; spanId: string } }

    The parent span to which this span is a child. This can be a SpanToken, an object with traceId and spanId, or an object with a ctx property containing the trace context.