Go Error Monitoring with Raygun

Easily detect, diagnose and fix Go errors

Solving Go errors has never been so easy!

Detect, diagnose and destroy Go errors that are affecting your customers. With smart Go error monitoring software from Raygun, you can be alerted to issues affecting your users, the second they happen.

Raygun supports all major programming languages and platforms including PHP, JavaScript, .NET, iOS, Android, Wordpress, Xamarin and more.

Whatever your tech stack looks like, or whether you’re monitoring backend or frontend code, Raygun can ensure all issues are brought to your team’s attention. All your errors are reported to your Raygun dashboard automatically.

Getting started - It's quick and easy


Install the library

Download the raygun4go library:

$ go get github.com/MindscapeHQ/raygun4go

In your project, open the most global file. For web servers, this will probably be the file with your request handling method, and for all other programsshould be the file with the main method.

To that file, add the library import statement:

import "github.com/MindscapeHQ/raygun4go"


Add the following code

Then add the following code at the earliest possible place in the request handling method (web servers) or the main method (everything else):

raygun, err := raygun4go.New("appName", "Your_API_Key")
if err != nil {
  log.Println("Unable to create Raygun client:", err.Error())
defer raygun.HandleError()

Run your program and cause a panic - the resulting error will be sent to Raygun!

Optional for debugging the integration: If you want to see handled errors logged to stdout instead of sending them to Raygun, add this line immediately before the defer statement above:



Start sending data!

Raygun will start monitoring your application for Go errors that are present in your application. Errors are grouped by their root cause and smart notifications alert you to the things that need attention.

Start fixing the Go errors and improve your app quality!

Don’t rely on your users to report errors

14 day free trial - no credit card required!

Go Error Monitoring Features

Raygun gives you full stacktraces for each and every error occurrence, along with environment information, HTTP requests, raw data, browser, OS, affected users and more. All the details you need to rectify issues quickly and efficiently. Raygun stores every single error event (no data sampling) so you’ll always have the right information at hand when needing to see when, why and how an error occurred.

    • Rather than be bombarded with a flood of messages and error emails, Raygun silently monitors your applications in the background and offers smart alerts for you when need to take action. Notifications are fully customizable, but repeating error instance emails and team chat alerts are sent only when issues are recurring or getting worse, resulting in more signal, and less noise.
    • Raygun allows you to set inbound filters to remove the reporting of errors you don’t care about or cannot fix, meaning you’ll be able to see the problems that are highest priority and affecting the largest amount of users. Choose what you want to monitor with custom setup for dealing with private user details and sensitive information, you can do it all.

It takes minutes to set Raygun up - seriously

Simply add a short code snippet and deploy your Go application into production, that’s all you need to start monitoring your application for PHP errors. Start fixing bugs within minutes!

More about Crash Reporting
Raygun dashboard Play button

Don’t rely on your users to report errors

14 day free trial - no credit card required!

Supports all major web and mobile programming languages

View all languages

Integrates with the workflow tools you use everyday

View all integrations

Solve your Go errors with Raygun

Forget logs and support tickets. Find the answers you need with greater speed and accuracy.

Raygun Go Error Monitoring

Discover why 40,000+ developers love Raygun

14 day free trial - no credit card required!