import Raven from 'raven-js' ; declare var cuAPI ; if ( process . env . ENABLE_SENTRY ) { Raven . config ( 'https://f7710348f19c4a0f8f8cd83ea0aa343f@sentry.io/1259561' , { release : process . env . GIT_REVISION , environment : 'development-test' , } ) . install ( ) ; if ( cuAPI ) { Raven . setTagsContext ( { shard : cuAPI . shardID , } ) ; Raven . setUserContext ( { id : cuAPI . characterID , } ) ; } setTimeout ( ( ) => { Raven . setTagsContext ( { shard : cuAPI . shardID , } ) ; Raven . setUserContext ( { id : cuAPI . characterID , } ) ; } , 1000 ) ; }