Skip to main content

Laminar.serializeLaminarSpanContext(span?)

Serialize span context for cross-service propagation.
Parameters:Returns: string | null — JSON string containing traceId, spanId, isRemote, spanPath, spanIdsPath

Laminar.getLaminarSpanContext(span?)

Get span context as an object.
Parameters:Returns: LaminarSpanContext | null

deserializeLaminarSpanContext(data) (internal)

Not exported from @lmnr-ai/lmnr. You typically do not need to deserialize manually—pass the serialized context directly as parentSpanContext when starting a span.
Example: Validate untrusted input
Parameters:Returns: LaminarSpanContext