Arize Phoenix TS
    Preparing search index...
    • Add a note to a span.

      Notes are append-only: each call creates a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same span. Structured annotations, by contrast, are keyed by (name, spanId, identifier) — to keep multiple structured annotations with the same name on a span, supply distinct identifiers; otherwise re-writing the same name overwrites the existing one.

      Parameters

      Returns Promise<{ id: string }>

      The ID of the created note annotation

      const result = await addSpanNote({
      spanNote: {
      spanId: "123abc",
      note: "This span looks suspicious, needs review"
      }
      });