Uses of Class
org.mockserver.metrics.OtelMetricsExporter
Packages that use OtelMetricsExporter
-
Uses of OtelMetricsExporter in org.mockserver.metrics
Methods in org.mockserver.metrics that return OtelMetricsExporterModifier and TypeMethodDescriptionstatic OtelMetricsExporterOtelMetricsExporter.startIfEnabled()Start the exporter if enabled in configuration, returning the running instance, ornullif disabled or startup failed (fail-soft — telemetry must never prevent the server from running).static OtelMetricsExporterOtelMetricsExporter.startWithReader(io.opentelemetry.sdk.metrics.export.MetricReader reader) Build a meter provider with the given reader and register observable instruments: One gauge perMetrics.Name(existing behaviour). JVM memory, thread, and GC gauges (same data asJvmMetricsCollectoron the Prometheus side). A gauge mirroring the slow-request counter so OTLP-only consumers can observe it without a Prometheus scrape. A gauge mirroring the per-fault-type chaos-injection counter. A gauge mirroring the active service-scoped chaos count. A histogram for request-handling duration (seconds), fed from the same observation path as the Prometheus histogram. Visible for testing (a test can pass an in-memory reader instead of the OTLP periodic reader).