You can send a notification to Bugsnag when deploying a new version of your application to correlate releases with error rates.
If you use capistrano to deploy your apps, you can enable deploy tracking by adding the integration to your app’s
Provide an API key in
set :bugsnag_api_key, 'api_key_here'
You can easily add Bugsnag deploy tracking to your Heroku application by running the following command from your application’s directory:
$ bundle exec rake bugsnag:heroku:add_deploy_hook
If you have multiple Heroku apps, you can specify which app to add the hook for as with the
HEROKU_APP environment variable:
$ bundle exec rake bugsnag:heroku:add_deploy_hook HEROKU_APP=my-app
You can run the following rake command from your deploy scripts.
rake bugsnag:deploy BUGSNAG_API_KEY=api-key-here BUGSNAG_RELEASE_STAGE=production BUGSNAG_REPOSITORYfirstname.lastname@example.org:your-org/your-repo.git BUGSNAG_REVISION=source-control-revision
The bugsnag rake tasks will be automatically available for Rails 3 or 4 apps, to make the rake tasks available in other apps, add the following to your
You can set the following environmental variables to override or specify additional deploy information:
||Your Bugsnag API key (required)|
||The release stage (eg, production, staging) currently being deployed.|
||The repository from which you are deploying the code.|
||The source control branch from which you are deploying the code.|
||The source control revision for the code you are currently deploying.|
||The app version of the code you are currently deploying.|
If no preconfigured integration exists for your deployment configuration, the Deploy Tracking API can be integrated directly.