Ship better software faster with full-stack application monitoring that works like you think it should.
Honeybadger transforms your logs into rich events that help you fix issues before your users know what happened.
Know the moment errors occur and fix bugs before customers can report them.
See your logs in context and answer questions after the fact.
Know when your external services go down or have other problems.
Know when your cron jobs and services go missing or silently fail.
Keep customers in the loop when your app is down.
Installing Honeybadger in a Rails app is just a few terminal commands:
$ bundle add honeybadger
$ bundle exec honeybadger install [API KEY]
That's it. See the developer docs for the latest instructions.
First, install the honeybadger-laravel
package via composer:
composer require honeybadger-io/honeybadger-laravel
Next, enable error reporting by adding the following to bootstrap/app.php
:
->withExceptions(function (Exceptions $exceptions) {
$exceptions->report(static function (Throwable $e) {
if (app()->bound('honeybadger')) {
app('honeybadger')->notify($e, app('request'));
}
});
})
Finally, run the honeybadger:install
artisan command to configure your API key and report a test error.
php artisan honeybadger:install [Your project API key]
That's it. See the developer docs for the latest instructions.
First, install the honeybadger
package:
mix hex.install honeybadger
Then configure your Honeybadger settings in config.exs
:
config :honeybadger,
api_key: "Your project API key"
To configure environment-specific settings, add the following to your #{env}.exs
files:
config :honeybadger,
environment_name: :dev # or :test, :prod, etc.
That's it. See the developer docs for the latest instructions.
First, install the honeybadger
package with pip:
pip install honeybadger
Then add the Honeybadger Django middleware to the top of your MIDDLEWARE
config variable:
MIDDLEWARE = [
'honeybadger.contrib.django.middleware.HoneybadgerMiddleware',
...
]
You'll also need to add a new HONEYBADGER
config variable to your settings.py
to specify your API key:
HONEYBADGER = {
'API_KEY': 'Your project API key'
}
That's it. See the developer docs for the latest instructions and additional frameworks.
To use our hosted CDN, place the following code between the <head></head>
tags of your page:
<script src="//js.honeybadger.io/v6.11/honeybadger.min.js" type="text/javascript"></script>
<script type="text/javascript">
Honeybadger.configure({
apiKey: 'Your project API key',
environment: 'production',
revision: 'git SHA/project version'
});
</script>
That's it. See the developer docs for the latest instructions and additional frameworks.
First, install the @honeybadger-io/js
npm package:
npm install @honeybadger-io/js --save
Then, require the honeybadger module and configure your API key:
const Honeybadger = require('@honeybadger-io/js');
Honeybadger.configure({
apiKey: 'Your project API key'
});
That's it. See the developer docs for the latest instructions and additional frameworks.
Honeybadger supports a wide range of platforms not listed here, including Go, Java, Crystal, and more. See our developer docs for a complete list of SDKs.
Any Honeybadger customer will tell you that we have the best developer-led support in the industry. Go ahead and email us right now—you'll get a fast reply from our dev team, and we'll go above and beyond to answer your questions.
Ben Curtis
To: Jason Charnes
Subject: Re: Uploading logs
Happy to help! And thanks for letting me know it (mostly) worked. I guess I have some debugging to do on that environment variable. :)
One last thing... make sure you run this to get Vector to start after a reboot:
sudo systemctl enable vector.service
I put that in the gist after I sent the last email to you, so you may have done that already, but you may not have, and it doesn't hurt to do it twice. :)
Oh, and about the log prefix you mentioned... look in config/environments/production.rb
for config.log_tags and comment that out. That's probably what's adding that stuff to your logs.
Jason Charnes
To: Honeybadger Support
Subject: Re: Uploading logs
That did the trick!!
This is so awesome. Again, thank you!
Get real-time alerts when code breaks, monitor performance, and fix errors in record time.