Documentation
¶
Overview ¶
Package observability used to hold Shield's metrics plugin.
Deprecated: the engine records its own metrics now, labelled by direction, decision and hook. Pass engine.WithMetrics, or let the Forge extension pass app.Metrics() for you, and drop this plugin. It implements no hooks and records nothing. The dotted counters it used to declare (shield.scan.started and the rest) are gone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsExtension
deprecated
type MetricsExtension struct{}
MetricsExtension is a plugin that implements no hooks.
Deprecated: use engine.WithMetrics. The Forge extension wires app.Metrics() into the engine without it.
func NewMetricsExtension
deprecated
func NewMetricsExtension() *MetricsExtension
NewMetricsExtension returns a plugin that records nothing.
Deprecated: use engine.WithMetrics.
func NewMetricsExtensionWithFactory
deprecated
func NewMetricsExtensionWithFactory(_ gu.MetricFactory) *MetricsExtension
NewMetricsExtensionWithFactory returns a plugin that records nothing. The factory is ignored.
Deprecated: use engine.WithMetrics with the same metrics.
func (*MetricsExtension) Name ¶
func (m *MetricsExtension) Name() string
Name implements plugin.Plugin.