Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/observability / openinference / openInferenceKindFor

Function: openInferenceKindFor() ​

ts
function openInferenceKindFor<T>(type): 
  | OpenInferenceSpanKind
  | null;

Defined in: packages/observability/src/openinference/index.ts:114

Stable

Resolve the OpenInference span kind for a Graphorin span type. Returns null for types intentionally excluded from emission.

Type Parameters ​

Type Parameter
T extends SpanType

Parameters ​

ParameterType
typeT

Returns ​

| OpenInferenceSpanKind | null