SkillAgentSearch skills...

Rollbar

Middleware to integrate with rollbar error monitoring.

Install / Use

/learn @gin-contrib/Rollbar
About this skill

Quality Score

0/100

Category

Operations

Supported Platforms

Universal

README

rollbar

Run Tests Trivy Security Scan codecov Go Report Card GoDoc

Middleware to integrate with rollbar error monitoring. It uses rollbar-go SDK that reports errors and logs messages.

Usage

Download and install it:

go get github.com/gin-contrib/rollbar

Import it in your code:

import "github.com/gin-contrib/rollbar"

Example

package main

import (
  "log"

  "github.com/gin-contrib/rollbar"
  "github.com/gin-gonic/gin"

  roll "github.com/rollbar/rollbar-go"
)

func main() {
  roll.SetToken("MY_TOKEN")
  // roll.SetEnvironment("production") // defaults to "development"

  r := gin.Default()
  r.Use(rollbar.Recovery(true))

  if err := r.Run(":8080"); err != nil {
    log.Fatal(err)
  }
}
View on GitHub
GitHub Stars18
CategoryOperations
Updated7d ago
Forks5

Languages

Go

Security Score

95/100

Audited on Mar 28, 2026

No findings