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

    output?: unknown

    Output data from the operation

    statusMessage?: string

    Human-readable status message

    version?: string

    Version identifier for the code/model being tracked