Class MetricsUsageRecorder

java.lang.Object
io.jenkins.plugins.explain_error.MetricsUsageRecorder
All Implemented Interfaces:
ExtensionPoint, UsageRecorder

@Extension public class MetricsUsageRecorder extends Object implements 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 counter
  • explain_error.provider_calls.{provider}.{model}.{result} – provider call counter
  • explain_error.request_duration_ms – request duration histogram
  • explain_error.input_log_lines – input log line count histogram

Privacy: no high-cardinality labels (job name, build number, username) are used.

  • Constructor Details

    • MetricsUsageRecorder

      public MetricsUsageRecorder()
      Default no-arg constructor used by Jenkins when loading the extension. The registry is resolved lazily from Metrics.metricRegistry() on each call.
  • Method Details