Arize Phoenix TS
    Preparing search index...

    Function getEvaluationAttributes

    • Generates annotations using evaluation terminology for a span, trace, or session.

      Collection indices are assigned in input order. Metadata objects are JSON-stringified, while metadata strings are preserved as provided.

      Parameters

      • options: { evaluations: readonly Annotation[]; scope?: AnnotationScope }

        Annotation values and target scope

        • evaluations: readonly Annotation[]

          Ordered annotations to encode using evaluation terminology

        • Optionalscope?: AnnotationScope

          Target scope; defaults to span

      Returns Attributes

      OpenTelemetry attributes using evaluation terminology

      getEvaluationAttributes({
      evaluations: [{ name: "correctness", label: "correct" }],
      scope: "session",
      });