How to use the @sentry/node.addBreadcrumb function in @sentry/node

To help you get started, we’ve selected a few @sentry/node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lightmatter / generic-django-conf / {{cookiecutter.repo_name}} / src / pages / _document.jsx View on Github external
render() {
        Sentry.addBreadcrumb({
            category: fileLabel,
            message: `Preparing document (${
                isServer() ? 'server' : 'browser'
            })`,
            level: Sentry.Severity.Debug,
        });

        return (
            
                
                    {/* PWA primary color */}
github Lightmatter / generic-django-conf / {{cookiecutter.repo_name}} / src / pages / _app.jsx View on Github external
export default function App(props) {
    debugForceIP();
    const { Component, pageProps } = props;
    const classes = useStyles();

    useEffect(() => {
        // Remove the server-side injected CSS.
        const jssStyles = document.querySelector('#jss-server-side');
        if (jssStyles) {
            jssStyles.parentElement.removeChild(jssStyles);
        }
    }, []);

    const { user } = pageProps;
    Sentry.addBreadcrumb({
        // See https://docs.sentry.io/enriching-error-data/breadcrumbs
        category: fileLabel,
        message: `Preparing app (${isServer() ? 'server' : 'browser'})`,
        level: Sentry.Severity.Debug,
    });

    return (
        <>
            
                <title>Lightmatter!</title>
                {!user ? (
github back4app / antframework / packages / ant-util-analytics / lib / Analytics.js View on Github external
addBreadcrumb(message, data, category = 'Initialization', level = 'info') {
    if (!this.sentryInitialized) {
      return;
    }
    Sentry.addBreadcrumb({
      message,
      data,
      category,
      level
    });
  }
}