@wioex/stream-sdk
Version: 
WebSocket streaming SDK for real-time WioEX market data
61 lines • 1.49 kB
TypeScript
/**
 * WioEX Stream SDK - Anonymous Telemetry
 *
 * Collects anonymous usage statistics to improve the SDK.
 * Users can opt-out by setting WIOEX_TELEMETRY_DISABLED=1
 */
export declare class Telemetry {
    private static readonly TELEMETRY_URL;
    private static readonly DISABLE_ENV;
    private static readonly SDK_VERSION;
    private static readonly STORAGE_KEY;
    /**
     * Report first usage (fire-and-forget, never throws)
     */
    static reportFirstUsage(): void;
    /**
     * Send telemetry data (async, silent fail)
     */
    private static sendTelemetry;
    /**
     * Check if telemetry is disabled
     */
    private static isTelemetryDisabled;
    /**
     * Check if telemetry was already reported
     */
    private static hasReported;
    /**
     * Mark telemetry as reported
     */
    private static markAsReported;
    /**
     * Build telemetry payload
     */
    private static buildPayload;
    /**
     * Get runtime information
     */
    private static getRuntime;
    /**
     * Get operating system
     */
    private static getOS;
    /**
     * Generate anonymous ID (machine-based, not user-based)
     */
    private static getAnonymousId;
    /**
     * Check if running in browser
     */
    private static isBrowser;
    /**
     * Send telemetry with timeout
     */
    private static sendWithTimeout;
    /**
     * Fallback for Node.js without fetch
     */
    private static sendWithHttps;
}
//# sourceMappingURL=Telemetry.d.ts.map