Langfuse JS/TS SDKs
    Preparing search index...

    Type Alias LangfuseSpanAttributes

    Attributes for Langfuse span observations.

    Spans are used to track operations, functions, or logical units of work. They can contain other spans, generations, or events as children.

    type LangfuseSpanAttributes = {
        environment?: string;
        input?: unknown;
        level?: ObservationLevel;
        metadata?: Record<string, unknown>;
        output?: unknown;
        statusMessage?: string;
        version?: string;
    }
    Index

    Properties

    environment?: string

    Environment where the operation is running (e.g., 'production', 'staging')

    input?: unknown

    Input data for the operation being tracked

    Severity level of the observation

    metadata?: Record<string, unknown>

    Additional metadata as key-value pairs. Updates merge into earlier metadata by top-level key. Each top-level key is one span attribute; new keys that would exceed the span's attribute count limit (spanLimits.attributeCountLimit, default 128) are dropped with a warning.

    output?: unknown

    Output data from the operation

    statusMessage?: string

    Human-readable status message

    version?: string

    Version identifier for the code/model being tracked