Generates annotations using evaluation terminology for a span, trace, or session.
Collection indices are assigned in input order. Metadata objects are JSON-stringified, while metadata strings are preserved as provided.
Annotation values and target scope
Ordered annotations to encode using evaluation terminology
Optional
Target scope; defaults to span
span
OpenTelemetry attributes using evaluation terminology
getEvaluationAttributes({ evaluations: [{ name: "correctness", label: "correct" }], scope: "session",}); Copy
getEvaluationAttributes({ evaluations: [{ name: "correctness", label: "correct" }], scope: "session",});
Generates annotations using evaluation terminology for a span, trace, or session.
Collection indices are assigned in input order. Metadata objects are JSON-stringified, while metadata strings are preserved as provided.