Documentation ¶
Overview ¶
Package monitoring provides multiple implementations of runtime.Monitor.
In addition to supplying runtime.Monitor implementations this package also provides a ConfigSchema and a generic New(config) method that can be used to instantiate one of the implementations dependening on configuration. This allows for configurable selection of monitoring strategy without complicating the application with configuration.
Index ¶
- Variables
- func New(config interface{}, auth client.Auth) runtime.Monitor
- func NewLoggingMonitor(logLevel string, tags map[string]string, syslogName string) runtime.Monitor
- func NewMonitor(project string, auth client.Auth, logLevel string, tags map[string]string, ...) runtime.Monitor
- func PreConfig() runtime.Monitor
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigSchema schematypes.Schema = schematypes.OneOf{
mockConfigSchema,
monitorConfigSchema,
}
ConfigSchema for configuration given to New()
Functions ¶
func NewLoggingMonitor ¶
NewLoggingMonitor creates a monitor that just logs everything. This won't attempt to send anything to sentry or statsum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.