Add a note to a span.
When spanNote.identifier is omitted, each call appends a new note with an auto-generated identifier. When identifier is non-empty, repeated calls with the same (spanId, name='note', identifier) overwrite the existing note.
spanNote.identifier
identifier
(spanId, name='note', identifier)
The parameters to add a span note
The ID of the created note annotation
const result = await addSpanNote({ spanNote: { spanId: "123abc", note: "This span looks suspicious, needs review" }}); Copy
const result = await addSpanNote({ spanNote: { spanId: "123abc", note: "This span looks suspicious, needs review" }});
Add a note to a span.
When
spanNote.identifieris omitted, each call appends a new note with an auto-generated identifier. Whenidentifieris non-empty, repeated calls with the same(spanId, name='note', identifier)overwrite the existing note.