Langfuse JS/TS SDKs
    Preparing search index...

    Interface ObserveOptions

    Options for the observe decorator function.

    interface ObserveOptions {
        asType?: LangfuseObservationType;
        captureInput?: boolean;
        captureOutput?: boolean;
        endOnExit?: boolean;
        name?: string;
        parentSpanContext?: SpanContext;
    }
    Index

    Properties

    Type of observation to create

    captureInput?: boolean

    Whether to capture function input as observation input

    captureOutput?: boolean

    Whether to capture function output as observation output

    endOnExit?: boolean

    Whether to automatically end the observation when exiting the context. Default is true

    name?: string

    Name for the observation (defaults to function name)

    parentSpanContext?: SpanContext

    Parent span context to attach this observation to