Skip to main content

Laminar.setSpanAttributes(attributes)

Set attributes on the current span.
Parameters:Returns: void

Laminar.setSpanOutput(output)

Explicitly set span output.
Parameters:Returns: voidNote: No-op if output is null or undefined.

Laminar.setSpanTags(tags)

Set tags on the current span (deduplicated).
Parameters:Returns: voidNote: Laminar.addSpanTags(...) is not available in the TypeScript SDK—use setSpanTags(...).

Laminar.event(options)

Add an event to the current span, or create a span if none exists.
Parameters:Returns: void

span.end(endTime?)

End a manually created span.
Parameters:Returns: voidNote: Pops active context if span was activated via startActiveSpan.

span.recordException(exception, time?)

Record an exception on the span.
Parameters:Returns: void

span.setAttributes(attributes)

Set attributes directly on a span object.
Parameters:Returns: this