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

      Notes are append-only: each call creates a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same trace. Structured annotations, by contrast, are keyed by (name, traceId, identifier) — to keep multiple structured annotations with the same name on a trace, 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 addTraceNote({
      traceNote: {
      traceId: "abc123",
      note: "Needs review"
      }
      });