Documentation ¶
Overview ¶
Package rollbar provides Rollbar 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 Rollbar.
func New ¶
New creates a new handler.
Example ¶
package main import ( rollbarhandler "emperror.dev/handler/rollbar" ) func main() { token := "token" _ = rollbarhandler.New(token, "env", "version", "host", "serverRoot") }
Output:
func NewFromClient ¶
func NewFromClient(client *rollbar.Client) *Handler
NewFromClient creates a new handler from a client instance.
Example ¶
token := "token" _ = rollbarhandler.NewFromClient(rollbar.New( token, "env", "version", "host", "serverRoot", ))
Output:
Click to show internal directories.
Click to hide internal directories.