Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Enhanced tracking and logging for DatalayerClient SDK operations. Provides operation correlation, timing, error categorization, and user-friendly handling.

    Index

    Constructors

    Properties

    operations: Map<string, OperationData> = ...

    Methods

    • Create enhanced SDK handlers with comprehensive logging and error handling.

      Returns SDKHandlers

      SDKHandlers with beforeCall, afterCall, and onError implementations

    • Get current operation statistics for debugging.

      Returns { activeOperations: number; operationsByMethod: Record<string, number> }

    • Handle SDK errors with smart categorization and user-friendly responses.

      Parameters

      • methodName: string
      • error: unknown
      • logger: {
            debug: (msg: string, context?: Record<string, unknown>) => void;
            error: (msg: string) => void;
            info: (msg: string) => void;
            warn: (msg: string, context?: Record<string, unknown>) => void;
        }

      Returns Promise<void>