Skip to content

jaredleechn/dva-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dva-sentry

NPM version

tracing action and effect, upload when an error occurs

import createSentry from 'dva-sentry';

const { user: { login, name, workid, email }, env } = window.context;
const app = dva();

app.use(createSentry({
  onReducerError,
  onEffectError,
  dsn,
  config: {
    environment: env,
    shouldSendCallback: data => data.environment !== 'local'
      && data.environment !== 'unittest',
  },
  context: {
    user: {
      login, name, workid, email,
    },
  },
}));

About

dva middleware, action and effect tracing, error reporting, together with https://sentry.io or self hosting

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published