Langfuse JS/TS SDKs
    Preparing search index...

    Type Alias LinkDatasetItemFunction

    LinkDatasetItemFunction: (
        obj: { otelSpan: Span },
        runName: string,
        runArgs?: { description?: string; metadata?: any },
    ) => Promise<DatasetRunItem>

    Function type for linking dataset items to OpenTelemetry spans. This allows dataset items to be associated with specific traces for experiment tracking.

    Type declaration

      • (
            obj: { otelSpan: Span },
            runName: string,
            runArgs?: { description?: string; metadata?: any },
        ): Promise<DatasetRunItem>
      • Parameters

        • obj: { otelSpan: Span }

          Object containing the OpenTelemetry span

        • runName: string

          Name of the dataset run

        • OptionalrunArgs: { description?: string; metadata?: any }

          Optional arguments for the dataset run

          • Optionaldescription?: string

            Description of the dataset run

          • Optionalmetadata?: any

            Additional metadata for the dataset run

        Returns Promise<DatasetRunItem>

        Promise that resolves to the created dataset run item