Documentation
¶
Index ¶
- func AutowiredEmitter() emitter.EventEmitter
- func Initialize(destination string, origin ...string) error
- func InitializeWithEmitter(emitter emitter.EventEmitter)
- func InstrumentedHandler(handler http.Handler) http.Handler
- func InstrumentedRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
- type NullEventEmitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutowiredEmitter ¶
func AutowiredEmitter() emitter.EventEmitter
func Initialize ¶
Initialize creates default emitters and instruments the default HTTP transport.
The origin variable is required and specifies the source name for all metrics emitted by this process. If it is not set, the program will run normally but will not emit metrics.
The destination variable sets the host and port to which metrics are sent. It is optional, and defaults to DefaultDestination.
func InitializeWithEmitter ¶
func InitializeWithEmitter(emitter emitter.EventEmitter)
func InstrumentedHandler ¶
InstrumentedHandler returns a Handler pre-configured to emit HTTP server request metrics to AutowiredEmitter.
func InstrumentedRoundTripper ¶
func InstrumentedRoundTripper(roundTripper http.RoundTripper) http.RoundTripper
InstrumentedRoundTripper returns a RoundTripper pre-configured to emit HTTP client request metrics to AutowiredEmitter.
Types ¶
type NullEventEmitter ¶
type NullEventEmitter struct{}
func (*NullEventEmitter) Close ¶
func (*NullEventEmitter) Close()
Directories
¶
Path | Synopsis |
---|---|
Package control is a generated protocol buffer package.
|
Package control is a generated protocol buffer package. |
Package dropsonde_marshaller provides a tool for marshalling Envelopes to Protocol Buffer messages.
|
Package dropsonde_marshaller provides a tool for marshalling Envelopes to Protocol Buffer messages. |
Package dropsonde_unmarshaller provides a tool for unmarshalling Envelopes from Protocol Buffer messages.
|
Package dropsonde_unmarshaller provides a tool for unmarshalling Envelopes from Protocol Buffer messages. |
Package events is a generated protocol buffer package.
|
Package events is a generated protocol buffer package. |
Package logs provides a simple API for sending app logs from STDOUT and STDERR through the dropsonde system.
|
Package logs provides a simple API for sending app logs from STDOUT and STDERR through the dropsonde system. |
Package metrics provides a simple API for sending value and counter metrics through the dropsonde system.
|
Package metrics provides a simple API for sending value and counter metrics through the dropsonde system. |
Messages are prepended with a HMAC SHA256 signature (the signature makes up the first 32 bytes of a signed message; the remainder is the original message in cleartext).
|
Messages are prepended with a HMAC SHA256 signature (the signature makes up the first 32 bytes of a signed message; the remainder is the original message in cleartext). |
Click to show internal directories.
Click to hide internal directories.