Top Description Inners Fields Constructors Methods
reactor.util

public Class Metrics

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
io.micrometer.core.instrument.MeterRegistry, reactor.core.publisher.Flux

Deprecated

prefer using the new reactor-core-micrometer module Micrometer entrypoint. To be removed in 3.6.0 at the earliest.

Utilities around instrumentation and metrics with Micrometer. Deprecated as of 3.5.0, prefer using the new reactor-core-micrometer module.
Author
Simon Baslé

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Metrics.MicrometerConfiguration

Deprecated Prefer using the reactor-core-micrometer module and configuring it using the Micrometer entrypoint.

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final boolean

Returns:

true if the Micrometer instrumentation facade is available
isInstrumentationAvailable
()

Deprecated prefer explicit usage of the reactor-core-micrometer module. To be removed in 3.6.0 at the earliest.
Check if the current runtime supports metrics / instrumentation, by verifying if Micrometer is on the classpath.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isMicrometerAvailableback to summary
pack-priv static final boolean isMicrometerAvailable

Constructor Detail

Metricsback to summary
public Metrics()

Method Detail

isInstrumentationAvailableback to summary
public static final boolean isInstrumentationAvailable()

Deprecated

prefer explicit usage of the reactor-core-micrometer module. To be removed in 3.6.0 at the earliest.

Check if the current runtime supports metrics / instrumentation, by verifying if Micrometer is on the classpath.

Note that this is regardless of whether the new reactor-core-micrometer module is also on the classpath (which could be the reason Micrometer is on the classpath in the first place).

Returns:boolean

true if the Micrometer instrumentation facade is available

Annotations
@Deprecated
reactor.util back to summary

public Class Metrics.MicrometerConfiguration

extends Object
Class Inheritance
Annotations
@Deprecated

Deprecated

Prefer using the reactor-core-micrometer module and configuring it using the Micrometer entrypoint.

Field Summary

Modifier and TypeField and Description
private static io.micrometer.core.instrument.MeterRegistry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static io.micrometer.core.instrument.MeterRegistry

Returns:

the configured registry
getRegistry
()

Deprecated prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.
Get the registry used in reactor for metrics related purposes.
public static io.micrometer.core.instrument.MeterRegistry

Returns:

the previously configured registry.
useRegistry
(io.micrometer.core.instrument.MeterRegistry registry)

Deprecated prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.
Set the registry to use in reactor for metrics related purposes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

registryback to summary
private static io.micrometer.core.instrument.MeterRegistry registry

Constructor Detail

MicrometerConfigurationback to summary
public MicrometerConfiguration()

Method Detail

getRegistryback to summary
public static io.micrometer.core.instrument.MeterRegistry getRegistry()

Deprecated

prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.

Get the registry used in reactor for metrics related purposes.

This is only reflecting the deprecated inline Micrometer instrumentation configuration, and not the configuration of the reactor-core-micrometer module.

Returns:io.micrometer.core.instrument.MeterRegistry

the configured registry

Annotations
@Deprecated
See Also
Flux#metrics()
useRegistryback to summary
public static io.micrometer.core.instrument.MeterRegistry useRegistry(io.micrometer.core.instrument.MeterRegistry registry)

Deprecated

prefer using Micrometer setup in new reactor-core-micrometer module. To be removed at the earliest in 3.6.0.

Set the registry to use in reactor for metrics related purposes.

This is only used by the deprecated inline Micrometer instrumentation, and not by the reactor-core-micrometer module.

Returns:io.micrometer.core.instrument.MeterRegistry

the previously configured registry.

Annotations
@Deprecated