Langfuse JS/TS SDKs
    Preparing search index...

    Interface GetTracesRequest

    {}
    
    interface GetTracesRequest {
        environment?: string | string[];
        fields?: string;
        fromTimestamp?: string;
        limit?: number;
        name?: string;
        orderBy?: string;
        page?: number;
        release?: string;
        sessionId?: string;
        tags?: string | string[];
        toTimestamp?: string;
        userId?: string;
        version?: string;
    }
    Index

    Properties

    environment?: string | string[]

    Optional filter for traces where the environment is one of the provided values.

    fields?: string

    Comma-separated list of fields to include in the response. Available field groups are 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not provided, all fields are included. Example: 'core,scores,metrics'

    fromTimestamp?: string

    Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601)

    limit?: number

    Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.

    name?: string
    orderBy?: string

    Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc

    page?: number

    Page number, starts at 1

    release?: string

    Optional filter to only include traces with a certain release.

    sessionId?: string
    tags?: string | string[]

    Only traces that include all of these tags will be returned.

    toTimestamp?: string

    Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601)

    userId?: string
    version?: string

    Optional filter to only include traces with a certain version.