Client SDK Reference
The core CluebaseClient class is responsible for managing error reporting and initialization.
init(config)
Initializes the SDK singleton. This is typically handled automatically by the provider.
typescript
static init(apiKey: string, options?: CluebaseOptions): CluebaseClientreportError(error, context?)
Manually reports an error to the dashboard.
typescript
reportError(
error: Error | string,
context?: Record<string, any>
): Promise<void>