- TypeScript
- Python
Laminar.serializeLaminarSpanContext(span?)
Serialize span context for cross-service propagation.| Name | Type | Default | Description |
|---|---|---|---|
span | Span | Active span | Optional span |
string | null — JSON string containing traceId, spanId, isRemote, spanPath, spanIdsPathLaminar.getLaminarSpanContext(span?)
Get span context as an object.| Name | Type | Default | Description |
|---|---|---|---|
span | Span | Active span | Optional span |
LaminarSpanContext | nulldeserializeLaminarSpanContext(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.| Name | Type | Description |
|---|---|---|
data | string | Record<string, unknown> | Serialized context (accepts camelCase or snake_case) |
LaminarSpanContext