health_sentry

package module
v0.0.0-...-0c1c742 Latest Latest
Warning

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

Go to latest
Published: May 16, 2015 License: MIT Imports: 2 Imported by: 0

README

health-sentry

Sentry sink for gocraft/health.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Application's Sentry URL.
	URL string
	// Only send errors if set.
	ErrorsOnly bool
}

Config is used to configure Sentry sink.

type Sink

type Sink struct {
	Config *Config
	// contains filtered or unexported fields
}

Sink emits errors to Sentry.

func NewSink

func NewSink(config *Config) (*Sink, error)

NewSink creates and returns new Sentry sink configured by given config.

func (*Sink) EmitComplete

func (s *Sink) EmitComplete(job string, status health.CompletionStatus, nanos int64, kvs map[string]string)

func (*Sink) EmitEvent

func (s *Sink) EmitEvent(job string, event string, kvs map[string]string)

func (*Sink) EmitEventErr

func (s *Sink) EmitEventErr(job string, event string, inputErr error, kvs map[string]string)

func (*Sink) EmitTiming

func (s *Sink) EmitTiming(job string, event string, nanos int64, kvs map[string]string)

func (*Sink) ShutdownServer

func (s *Sink) ShutdownServer()

Jump to

Keyboard shortcuts

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