Skip to content

Graphorin API reference v0.10.1


Graphorin API reference / @graphorin/observability / / toOtlpEnvelope

Function: toOtlpEnvelope()

ts
function toOtlpEnvelope(record, serviceName): unknown;

Defined in: packages/observability/src/exporters/otlp-http.ts:111

Convert a finished SpanRecord into an OTLP-HTTP resourceSpans envelope. Exposed (OBS-PRIC-01) so an upstream OTel SDK pipeline can adapt Graphorin spans inside its own exporter, as the observability and migration guides document.

Parameters

ParameterType
recordSpanRecord
serviceNamestring

Returns

unknown

Stable