rollbar

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package rollbar provides helpers for setting up rollbar error reporting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportPanic

func ReportPanic(logger logrus.FieldLogger)

ReportPanic attempts to report the panic to rollbar via the logrus.

func Setup

func Setup(logger logrus.FieldLogger, cfg Config)

Setup installs a Rollbar report handler to the default logrus logger.

Setup is skipped if Token and Env are not present in the config.

Types

type Config

type Config struct {
	Token string `env:"ROLLBAR_TOKEN"`
	Env   string `env:"ROLLBAR_ENV"`
}

Config for Rollbar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL