goshadow

Golang Error Monitoring

Identify and fix Golang errors with Airbrake

How to install Airbrake to capture Go errors

Create an Airbrake account and then choose one of these two very easy ways to send Go errors to Airbrake:

Capture Go errors with Gobrake

Sending Go errors to Airbrake is incredibly simple using our gobrake library. First, go get the library to install in an existing project:

go get github.com/airbrake/gobrake/v5

Or, to install in a new project:

mkdir airbrake_example && cd airbrake_example
go mod init airbrake_example
go get github.com/airbrake/gobrake/v5

Initialize and use gobrake with your account credentials:

var airbrake = gobrake.NewNotifierWithOptions(&gobrake.NotifierOptions{
	ProjectId: 123,
	ProjectKey: "abcdefgh12345678",
	Environment: "production",
})

airbrake.Notify(errors.New("Hello Airbrake!"), nil)

// Or the familiar Go pattern.
if err != nil {
	airbrake.Notify(err)
}

Capture Go errors with Glog

Use our glog fork to seamlessly integrate Airbrake error reporting into your application's logging:

glog.Errorf("Hello Airbrake!")

// Or the familiar Go pattern.
if err != nil {
  glog.Errorf("Something broke: %s", err)
}

What's happening in your Go apps?

Your Golang apps are up, but your customers are still seeing errors. The faster you can identify and fix the problem, the sooner you can get back to satisfying your users. That's where Airbrake comes in. Airbrake installs in minutes, making Golang error monitoring and reporting easy and effective — and virtually immediate.

With Airbrake Go's error handling tool, capturing Go errors is easier than ever. Detailed stack traces, as well as environment and user reports, make Go error debugging simple. Real-time error notifications and instant insight into the line of code that broke, the environment in which it occurred, and the deploy it's tied to mean you'll never need to sift through massive log files on the hunt for an error again.

Drilling down and understanding what's breaking your code in your Go application is easy with Airbrake, which provides:

  • Affected users, parameters, and stack traces - all of the info you need to identify, assess, and resolve errors in a timely manner
  • Error trends and deploy tracking - making managing and triaging errors easy
  • Custom workflow integrations - prioritize and triage errors in a collaborative manner

 

With Airbrake for Go, finding the root cause of your application error is easier than ever. We help you locate the error's file, the method, and even the line of code. And our proprietary and customizable grouping algorithms cut through the noise so you can focus on fixing the errors that matter most. Stop assuming your customer experience is okay. Know it is, with Airbrake Go.

KEY FEATURES: 

Blazing fast, real-time errors alerts

Lightweight notifier installs quickly and won't impact your app performance

Receive error notifications via email, Slack, or webhooks

Fast error search and filtering within your Airbrake dashboard

Advanced data security including SOC-2 Compliance and SAML Single Sign-On - included with all Airbrake plans

Integrates with GitHub, Trello, Slack, JIRA, Pivotal Tracker, GitHub Enterprise, GitLab, GitLab CE/EE, Bitbucket, Lighthouse, Flowdock, Campfire, Assembla, custom webhooks and other 3rd party apps

Dupe error detection

Customizable error filtering

Unlimited users and projects

Comprehensive read & write API

Deploy tracking to monitor code quality

Performance insight about your total app health including your code, production environment, and the user experience.