Documentation
¶
Index ¶
- func AddLoggerHook(c collector.Collector)
- func MessageBusNotifyTrace(ctx context.Context, operation string, obj models.Object) collector.MessageBuilder
- func NewCollector(cfg *Config) (collector.Collector, error)
- func NewCollectorFromGlobalConfig() (collector.Collector, error)
- func NewMessageBusProcessor(collector collector.Collector) error
- func RESTAPITrace(ctx echo.Context, reqBody, resBody []byte) collector.MessageBuilder
- func VNCAPIMessage(entry *logrus.Entry) collector.MessageBuilder
- func VncAPILatencyStatsLog(ctx context.Context, operation, application string, responseTime int64) collector.MessageBuilder
- func WithCommitLatencyReporting(c collector.Collector) func(driver.Driver) driver.Driver
- type BodyDumpPlugin
- type Config
- type LatencyReportingDoer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLoggerHook ¶
AddLoggerHook setup logrus logger to send entries to collector
func MessageBusNotifyTrace ¶
func MessageBusNotifyTrace(ctx context.Context, operation string, obj models.Object) collector.MessageBuilder
MessageBusNotifyTrace sends message with type MessageBusNotifyTrace
func NewCollector ¶
NewCollector makes a collector
func NewCollectorFromGlobalConfig ¶
NewCollectorFromGlobalConfig makes a collector using global Viper configuration.
func NewMessageBusProcessor ¶
NewMessageBusProcessor runs etcd events watcher
func RESTAPITrace ¶
func RESTAPITrace(ctx echo.Context, reqBody, resBody []byte) collector.MessageBuilder
RESTAPITrace sends message with type RestApiTrace
func VNCAPIMessage ¶
func VNCAPIMessage(entry *logrus.Entry) collector.MessageBuilder
VNCAPIMessage sends message with type VncApiDebug, VncApiInfo, VncApiNotice or VncApiError depends on level
func VncAPILatencyStatsLog ¶
func VncAPILatencyStatsLog( ctx context.Context, operation, application string, responseTime int64, ) collector.MessageBuilder
VncAPILatencyStatsLog sends message with type VncAPILatencyStatsLog
Types ¶
type BodyDumpPlugin ¶
BodyDumpPlugin sends HTTP request and response body to Collector.
func (BodyDumpPlugin) RegisterGRPCAPI ¶
func (BodyDumpPlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)
RegisterGRPCAPI does nothing.
func (BodyDumpPlugin) RegisterHTTPAPI ¶
func (p BodyDumpPlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)
RegisterHTTPAPI registers middleware for all endpoints.