Add a note to a trace.
When traceNote.identifier is omitted, each call appends a new note with an auto-generated identifier. When identifier is non-empty, repeated calls with the same (traceId, name='note', identifier) overwrite the existing note.
traceNote.identifier
identifier
(traceId, name='note', identifier)
The parameters to add a trace note.
The ID of the created note annotation.
const result = await addTraceNote({ traceNote: { traceId: "abc123", note: "Needs review" }}); Copy
const result = await addTraceNote({ traceNote: { traceId: "abc123", note: "Needs review" }});
Add a note to a trace.
When
traceNote.identifieris omitted, each call appends a new note with an auto-generated identifier. Whenidentifieris non-empty, repeated calls with the same(traceId, name='note', identifier)overwrite the existing note.