Class ObservabilityKit
java.lang.Object
com.vaadin.observability.micrometer.ObservabilityKit
Programmatic bootstrap for standalone (non-Spring) deployments. Call
install(MeterRegistry, ObservabilitySettings) once at startup; the
SPI-loaded MetricsServiceInitListener reads the stored registry and
settings when the VaadinService initializes.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.MeterRegistryThe registry instrumentation is currently publishing to, ornullif instrumentation has not been bound.static RecentClientErrorsGets the retained browser errors, ornullwhen any of the three settings they need was off — the in-browser collector, insights, or error instrumentation.static RecentInteractionsThe recent-interactions buffer instrumentation is currently recording into, ornullif interaction backtracking has not been bound.static RecentQueriesGets the retained data provider queries, ornullwhen the query collector was not registered.static voidinstall(io.micrometer.core.instrument.MeterRegistry meterRegistry, ObservabilitySettings settings) static voidinstall(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.observation.ObservationRegistry observationRegistry, ObservabilitySettings settings)
-
Method Details
-
install
public static void install(io.micrometer.core.instrument.MeterRegistry meterRegistry, ObservabilitySettings settings) -
install
public static void install(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.observation.ObservationRegistry observationRegistry, ObservabilitySettings settings) -
getActiveMeterRegistry
public static io.micrometer.core.instrument.MeterRegistry getActiveMeterRegistry()The registry instrumentation is currently publishing to, ornullif instrumentation has not been bound. Read by the dev-mode Copilot metrics panel.- Returns:
- the active meter registry, or
null
-
getRecentQueries
Gets the retained data provider queries, ornullwhen the query collector was not registered.- Returns:
- the query buffer, or
null
-
getRecentClientErrors
Gets the retained browser errors, ornullwhen any of the three settings they need was off — the in-browser collector, insights, or error instrumentation.- Returns:
- the browser-error buffer, or
null
-
getRecentInteractions
The recent-interactions buffer instrumentation is currently recording into, ornullif interaction backtracking has not been bound. Read by the insights endpoint.- Returns:
- the active recent-interactions buffer, or
null
-