UNPKG

@pnp/telemetry-js

Version:

PnP Telemetry dependency which is being used to track PnP client-side usage.

31 lines (30 loc) 616 B
import "whatwg-fetch"; /** * PnP Telemetry class * * This can be used to track PnP client-side events */ export default class PnPTelemetry { private events; private timeout; private tracking; /** * Initialize the telemetry class and return the instance */ static getInstance(): PnPTelemetry; /** * Opt out of tracking */ optOut(): void; /** * Track the event information * * @param name * @param props */ trackEvent(name: string, properties?: any): void; /** * Delay event tracking */ private debounceTracking; }