Arize Phoenix TS
    Preparing search index...

    Function getAnnotationAttributes

    • Generates annotation attributes 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

      Returns Attributes

      OpenTelemetry attributes using annotation terminology

      getAnnotationAttributes({
      annotations: [{ name: "correctness", score: 0.95 }],
      scope: "trace",
      });