Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event wraps some data and some sinks to send it to.
func (*Event) AddDynamicField ¶
Add a dynamic field to this event; this will be evaluated each time Send() or SendTo() is called.
type HoneycombSink ¶
type HoneycombSink struct {
// contains filtered or unexported fields
}
HoneycombSink will send the event to HoneyComb.io, with fields added.
func NewHoneycombSink ¶
func NewHoneycombSink(builder *libhoney.Builder) *HoneycombSink
func (*HoneycombSink) SendEvent ¶
func (sink *HoneycombSink) SendEvent(eventName string, fields map[string]interface{})
type LogEventSink ¶
type LogEventSink struct {
// contains filtered or unexported fields
}
LogEventSink will log the event with level "info" to the logger passed in, using the event fields.
func NewLogEventSink ¶
func NewLogEventSink(logger log.Logger) *LogEventSink
func (*LogEventSink) SendEvent ¶
func (sink *LogEventSink) SendEvent(eventName string, fields map[string]interface{})
Click to show internal directories.
Click to hide internal directories.