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.
ConfigSchema for configuration given to New()
New returns a runtime.Monitor strategy from config matching ConfigSchema.
NewLoggingMonitor creates a monitor that just logs everything. This won't attempt to send anything to sentry or statsum.
NewMonitor creates a new monitor
PreConfig returns a default monitor for use before the configuration is loaded. This logs at the INFO level to stderr.