Performance Monitoring for Go applications
Application Performance Monitoring with Airbrake makes it easy to:
- Understand high-level performance: Quickly see a broad performance overview for your whole application.
- Monitor user satisfaction: Measure user satisfaction with your app performance using Apdex.
- Catch problem routes: Identify routes with slow or error-prone performance.
- Analyze granular performance metrics: Zoom into specific endpoints to see time spent in the DB, view, cache, external requests, and more.
- Dive into database performance: Analyze SQL database queries being called and how long they take.
- Track your background jobs: Monitor background job performance, track job failures and durations.
Airbrake Performance Monitoring for Go supports:
- Sending route stats
- HTTP middlewares for Gin and Beego users
- Wrapping important code blocks for detailed timing
- Collecting stats about individual SQL queries
Step 1: Install the latest version of gobrake
Step 2: Configure gobrake and start sending route stats
Before you can send performance stats replace the placeholder
ProjectKey values from the example below with the real values from your
project’s setting page.
Now that your gobrake notifier is configured let’s collect some routes stats, we will use a simple net/http middleware in this example.
Once you run this example and perform some
curls or visit
localhost:5555/ in your browser, you will see
performance requests in your project’s performance dashboard.
Great job! If you’ve used this example in your app, you can visit your Airbrake project’s Performance Dashboard to see your performance data! Soon enough you’ll have more insights into your application’s performance. In the meantime why not check out the Performance Dashboard features. Have questions about Performance Monitoring? Check out our Performance Monitoring FAQ for more information.
Measuring timing of specific operations
Need more visibility into a slow route? To get more detailed timing, you
can wrap important blocks of code into spans. For example, you can create 2
http to measure timing of specific operations:
Want to learn more?
Want to learn more about gobrake? Check out our official GitHub repo.