rollbar

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 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 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