The Atatus Go Profiler helps troubleshoot Go application issues and detect performance bottlenecks before they affect users. It continuously captures function call stacks and runtime metrics in production to identify slow functions, excessive CPU usage, goroutine leaks, high memory allocations, and inefficient resource usage.

Installation & Setup

Step 1: Install the Go Modules

Install the Atatus APM and profiler modules and import them in your application:

Step 2: Initialize APM and the Profiler

Atatus APM is required for profiling. Initialize the Atatus APM tracer first, and then start the profiler in your main() function:

Step 3: Configure Environment Variables and Start Your Application

Set the required Atatus environment variables before starting your Go application:

Optional Environment Variables

For on-premise or custom server endpoints:

Supported Profile Types