- TypeScript
- Python
Laminar.setSpanAttributes(attributes)
Set attributes on the current span.Returns:
voidLaminar.setSpanOutput(output)
Explicitly set span output.Returns:
voidNote: No-op if output is null or undefined.Laminar.setSpanTags(tags)
Set tags on the current span (deduplicated).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.Returns:
voidspan.end(endTime?)
End a manually created span.Returns:
voidNote: Pops active context if span was activated via startActiveSpan.span.recordException(exception, time?)
Record an exception on the span.Returns:
voidspan.setAttributes(attributes)
Set attributes directly on a span object.Returns:
this