Go · API monitoring & observability

Gin API monitoring & analytics

Gin is fast, and Beacon keeps it that way: the middleware captures each request on a background goroutine and is fail-open by design, so a Beacon outage or bad key can never block, slow, or crash your service. It records Gin's route template (/users/:id) for correct aggregation.

100,000 requests per month on the free tier — no credit card to start.

Add Beacon to Gin in two steps

Drop-in middleware. The SDK defaults to Beacon's hosted ingest endpoint, so you only need a project ingest key — set it as BEACON_INGEST_KEY in your environment.

1. Install
go get github.com/kb-gardner/beaconhq-go/gin
2. Add the middleware
package main

import (
	"context"
	"os"

	"github.com/gin-gonic/gin"
	"github.com/kb-gardner/beaconhq-go"
	beacongin "github.com/kb-gardner/beaconhq-go/gin"
)

func main() {
	bc, err := beaconhq.New(beaconhq.Config{APIKey: os.Getenv("BEACON_INGEST_KEY")})
	if err != nil {
		panic(err)
	}
	defer bc.Close(context.Background())

	r := gin.New()
	r.Use(beacongin.Middleware(bc))

	r.GET("/users/:id", func(c *gin.Context) {
		c.JSON(200, gin.H{"id": c.Param("id")})
	})

	_ = r.Run(":8080")
}

Create a project in the dashboard to get your ingest key, then deploy. Traffic, latency, errors, and endpoints populate in real time. Full setup in the docs.

Everything you need to keep your Gin API healthy

One place for traffic, latency, errors, uptime, and scheduled-job health — built for teams who need to know what their API is doing right now.

Traffic & latency percentiles

Per-request volume with p50/p95/p99 latency, so you see real tail latency — not just averages.

Error rates & error explorer

Track 4xx/5xx over time and drill into the exact failing requests, status codes, and endpoints behind an incident.

Endpoint & consumer breakdowns

See which endpoints and which API consumers drive your traffic, errors, and slowest responses — ranked and filterable.

Request-log explorer

A searchable log of individual requests — method, path, status, latency, consumer — the fast path from a metric spike to the requests behind it.

Uptime, cron & heartbeat monitoring

Synthetic uptime checks plus dead-man's-switch heartbeat monitoring for cron jobs and background workers.

Status pages & alerts

Public status pages and multi-channel alerts — email, Slack, PagerDuty, Discord, Teams, and signed webhooks — when something breaks.

Start monitoring your Gin API today

100,000 requests per month on the free tier — no credit card to start. Connect your first service in minutes.