Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / emitGenAIAttributes

Function: emitGenAIAttributes()

ts
function emitGenAIAttributes<T>(span, attrs): void;

Defined in: packages/observability/src/gen-ai/emit.ts:55

Attach the canonical gen_ai.* attribute set to a span. The helper is additive on the existing Graphorin-prefixed attributes and applies the per-attribute sensitivity defaults catalogue.

Type Parameters

Type Parameter
T extends SpanType

Parameters

ParameterType
spanAISpan&lt;T&gt;
attrsGenAIAttributes

Returns

void

Stable