Skip to content

basalt / core/src / toOtlpJson

Function: toOtlpJson() ​

> toOtlpJson(spans, serviceName): unknown

Defined in: core/src/tracing.ts:203

Serializes spans to the OTLP/JSON ExportTraceServiceRequest shape.

Parameters ​

spans ​

FinishedSpan[]

serviceName ​

string

Returns ​

unknown

Released under the MIT License.