import { IAnalytics , IEventArgs , TraitsMap , IPageEvent , IAnalyticsUser } from "../IAnalytics" ; import * as Sentry from '@sentry/browser' ; /**
 * https://docs.sentry.io/platforms/javascript/enriching-events/identify-user/
 */ export class SentryAnalytics implements IAnalytics { public event ( evt ) { } public event2 ( event , data ? ) { } public page ( event ) { } public identify ( user ) { Sentry . setUser ( { email : user . email } ) ; } public traits ( traits ) { } public version ( version ) { } public heartbeat ( ) { } public logout ( ) { Sentry . configureScope ( scope => scope . setUser ( null ) ) ; } }