Langfuse JS/TS SDKs
    Preparing search index...

    Interface ObservationsView

    interface ObservationsView {
        calculatedInputCost: null | number;
        calculatedOutputCost: null | number;
        calculatedTotalCost: null | number;
        completionStartTime: null | string;
        costDetails: Record<string, number>;
        endTime: null | string;
        environment: string;
        id: string;
        input?: unknown;
        inputPrice: null | number;
        latency: null | number;
        level: ObservationLevel;
        metadata?: unknown;
        model: null | string;
        modelId: null | string;
        modelParameters?: unknown;
        name: null | string;
        output?: unknown;
        outputPrice: null | number;
        parentObservationId: null | string;
        promptId: null | string;
        promptName: null | string;
        promptVersion: null | number;
        startTime: string;
        statusMessage: null | string;
        timeToFirstToken: null | number;
        totalPrice: null | number;
        traceId: null | string;
        type: string;
        usage: Usage;
        usageDetails: Record<string, number>;
        version: null | string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    calculatedInputCost: null | number

    (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD

    calculatedOutputCost: null | number

    (Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD

    calculatedTotalCost: null | number

    (Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD

    completionStartTime: null | string

    The completion start time of the observation

    costDetails: Record<string, number>

    The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.

    endTime: null | string

    The end time of the observation.

    environment: string

    The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.

    id: string

    The unique identifier of the observation

    input?: unknown

    The input data of the observation

    inputPrice: null | number

    The price of the input in USD

    latency: null | number

    The latency in seconds.

    The level of the observation

    metadata?: unknown

    Additional metadata of the observation

    model: null | string

    The model used for the observation

    modelId: null | string

    The unique identifier of the model

    modelParameters?: unknown

    The parameters of the model used for the observation

    name: null | string

    The name of the observation

    output?: unknown

    The output data of the observation

    outputPrice: null | number

    The price of the output in USD.

    parentObservationId: null | string

    The parent observation ID

    promptId: null | string

    The prompt ID associated with the observation

    promptName: null | string

    The name of the prompt associated with the observation

    promptVersion: null | number

    The version of the prompt associated with the observation

    startTime: string

    The start time of the observation

    statusMessage: null | string

    The status message of the observation

    timeToFirstToken: null | number

    The time to the first token in seconds

    totalPrice: null | number

    The total price in USD.

    traceId: null | string

    The trace ID associated with the observation

    type: string

    The type of the observation

    usage: Usage

    (Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation

    usageDetails: Record<string, number>

    The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.

    version: null | string

    The version of the observation