Package io.jenkins.plugins.explain_error
Class MetricsUsageRecorder
java.lang.Object
io.jenkins.plugins.explain_error.MetricsUsageRecorder
- All Implemented Interfaces:
ExtensionPoint,UsageRecorder
Records Explain Error usage events as low-cardinality Dropwizard metrics
exposed through the Jenkins Metrics plugin.
This recorder is automatically active when the Jenkins Metrics plugin is installed. If the plugin is absent, the extension will not load and no metrics are exported.
The following metrics are exported:
explain_error.requests.{entryPoint}.{result}– request outcome counterexplain_error.provider_calls.{provider}.{model}.{result}– provider call counterexplain_error.request_duration_ms– request duration histogramexplain_error.input_log_lines– input log line count histogram
Privacy: no high-cardinality labels (job name, build number, username) are used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-arg constructor used by Jenkins when loading the extension. -
Method Summary
-
Constructor Details
-
MetricsUsageRecorder
public MetricsUsageRecorder()Default no-arg constructor used by Jenkins when loading the extension. The registry is resolved lazily fromMetrics.metricRegistry()on each call.
-
-
Method Details
-
record
- Specified by:
recordin interfaceUsageRecorder
-