Package io.jmix.flowui.monitoring
Class LegacyUiTimerSupport
java.lang.Object
io.jmix.flowui.monitoring.LegacyUiTimerSupport
@Deprecated(since="3.0",
forRemoval=true)
@Component("flowui_LegacyUiTimerSupport")
public class LegacyUiTimerSupport
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Brackets a piece of work with the legacy
Timer-based metrics
(jmix.ui.data, jmix.ui.views) when
UiProperties.isLegacyMonitoringEnabled() is on.
Exists solely for back-compat with dashboards built on the legacy tag schema. The whole bean
is expected to be removed in a future release once consumers migrate to the modern Observation
tag schema; at that point this class — together with the property — can be deleted with no
impact on call sites in UiObservationSupport.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.micrometer.core.instrument.MeterRegistryDeprecated, for removal: This API element is subject to removal in a future version.protected UiPropertiesDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated, for removal: This API element is subject to removal in a future version.<T> TrecordDataLoaderTimer(DataLoader loader, DataLoaderLifeCycle phase, Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.<T> TrecordViewTimer(View<?> view, ViewLifecycle phase, Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version.protected voidDeprecated, for removal: This API element is subject to removal in a future version.When legacy monitoring is on, modernObservation-basedTimerandLongTaskTimerfor the samejmix.ui.*metric names would collide with the legacy registrations under different tag schemas.
-
Field Details
-
meterRegistry
@Autowired protected io.micrometer.core.instrument.MeterRegistry meterRegistryDeprecated, for removal: This API element is subject to removal in a future version. -
uiProperties
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
LegacyUiTimerSupport
public LegacyUiTimerSupport()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
suppressObservationMetersInLegacyMode
@PostConstruct protected void suppressObservationMetersInLegacyMode()Deprecated, for removal: This API element is subject to removal in a future version.When legacy monitoring is on, modernObservation-basedTimerandLongTaskTimerfor the samejmix.ui.*metric names would collide with the legacy registrations under different tag schemas.PrometheusMeterRegistrykeeps the first registration and silently drops conflicting ones. Suppress the modern side at the registry level by denying any meter underjmix.ui.*that carries the modern-schema marker taglifecycle.name. Tracing spans don't go throughMeterRegistryand are not affected. -
isEnabled
protected boolean isEnabled()Deprecated, for removal: This API element is subject to removal in a future version. -
recordDataLoaderTimer
public <T> T recordDataLoaderTimer(DataLoader loader, DataLoaderLifeCycle phase, Supplier<T> action) Deprecated, for removal: This API element is subject to removal in a future version. -
recordViewTimer
Deprecated, for removal: This API element is subject to removal in a future version.
-