honeylager

package module
v0.0.0-...-67c7942 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 9 Imported by: 3 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

honeylager

Integrate https://github.com/cloudfoundry/lager with Honeycomb.io

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadResponses

func ReadResponses()

ReadResponses is a blocking method that waits for responses from Honeycomb and prints whether the event emission succeeded or failed. Callers will likely want to execute this method in a goroutine due to its blocking, asynchronous, nature.

Types

type Sink

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

func NewSink

func NewSink(
	honeycombWriteKey string,
	honeycombDataset string,
	minLogLevel lager.LogLevel,
) *Sink

NewSink returns a new Sink Callers are expected to call Close() when they are done e.g. sink := NewSink(); defer sink.Close() Callers may also wish to track the responses with ReadResponses()

func (*Sink) Close

func (sink *Sink) Close()

func (*Sink) Log

func (sink *Sink) Log(logFormat lager.LogFormat)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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