Skip to content

umurkontaci/angular-raven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-raven

Raven Wrapper for AngularJS

This is a very simple wrapper for Sentry Client Raven.

Set Up

  1. Set up sentry so that it accepts connections from your domain.

  2. Import necessary scripts

    <!--Vendor Scripts-->
    <script type="text/javascript" src="../vendor/angular.min.js"></script>
    <script type="text/javascript" src="../vendor/raven.min.js"></script>
    <!--Raven Script-->
    <script type="text/javascript" src="../angular-raven.js"></script>
  1. Configure your Raven Url.
    angular.module("yourModule", ["angular-raven"])
        .value("RavenConfig", {
            ravenUrl: "http://[email protected]/1" // this should be your raven endpoint URL
    }); 
  1. Deploy to your server, and play with it.

  2. See testclient/index.html for a working one.

Options

GetSentry provides the possibility to add additional options to your Raven config, such as whitelistUrls. These options can be submitted using the options key in the config object.

    angular.module("yourModule", ["angular-raven"])
        .value("RavenConfig", {
            ravenUrl: "http://[email protected]/1", // this should be your raven endpoint URL
            options: {
                whitelistUrls: ['example.com/scripts/']
            }
    });

About

Raven Wrapper for AngularJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published