Skip to main content

Laminar.flush()

Flush pending spans to the backend.
// At end of script or Lambda handler
await Laminar.flush();
Returns: Promise<void>When to use:
  • End of CLI scripts
  • End of serverless function handlers
  • Before process exit
When NOT to use:
  • In web server request handlers (degrades performance)

Laminar.shutdown()

Flush spans and shut down tracing.
await Laminar.shutdown();
// Can call Laminar.initialize() again if needed
Returns: Promise<void>Note: Force flushes, clears config/context, releases resources. Can re-initialize afterward.

Laminar.getHttpUrl()

Return the configured HTTP URL.Returns: string

Laminar.getProjectApiKey()

Return the configured project API key.Returns: string