README

Bugsnag handler

GitHub Workflow Status Codecov Go Report Card Go Version go.dev reference

Error handler integration for Bugsnag.

Installation

go get emperror.dev/handler/bugsnag

Usage

package main

import (
	"emperror.dev/handler/bugsnag"
)

func main() {
	apiKey := "key"

	handler := bugsnag.New(apiKey)
}

Development

When all coding and testing is done, please run the test suite:

$ make check

License

The MIT License (MIT). Please see License File for more information.

Expand ▾ Collapse ▴

Documentation

Overview

    Package bugsnag provides Bugsnag integration.

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Handler

    type Handler struct {
    	// contains filtered or unexported fields
    }

      Handler is responsible for sending errors to Bugsnag.

      func New

      func New(apiKey string) *Handler

        New creates a new handler.

        Example
        Output:
        
        

        func NewFromNotifier

        func NewFromNotifier(notifier *bugsnag.Notifier) *Handler

          NewFromNotifier creates a new handler from an existing notifier instance.

          Example
          Output:
          
          

          func (*Handler) Handle

          func (h *Handler) Handle(err error)

            Handle sends the error to Bugsnag.