@arizeai/phoenix-client
Version:
A client for the Phoenix API
44 lines • 1.11 kB
TypeScript
import type { ClientFn } from "../types/core";
/**
* Parameters for a single span note
*/
export interface SpanNote {
/**
* The OpenTelemetry Span ID (hex format without 0x prefix)
*/
spanId: string;
/**
* The note text to add to the span
*/
note: string;
}
/**
* Parameters to add a span note
*/
export interface AddSpanNoteParams extends ClientFn {
spanNote: SpanNote;
}
/**
* Add a note to a span.
*
* Notes are a special type of annotation that allow multiple entries per span
* (unlike regular annotations which are unique by name and identifier).
* Each note gets a unique timestamp-based identifier.
*
* @param params - The parameters to add a span note
* @returns The ID of the created note annotation
*
* @example
* ```ts
* const result = await addSpanNote({
* spanNote: {
* spanId: "123abc",
* note: "This span looks suspicious, needs review"
* }
* });
* ```
*/
export declare function addSpanNote({ client: _client, spanNote, }: AddSpanNoteParams): Promise<{
id: string;
}>;
//# sourceMappingURL=addSpanNote.d.ts.map