Class VirtualThreadCollector
java.lang.Object
io.quarkus.micrometer.runtime.binder.virtualthreads.VirtualThreadCollector
A component collecting metrics about virtual threads.
It will be only available when the virtual threads are enabled (Java 21+).
Note that metrics are collected using JFR events.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final io.micrometer.core.instrument.MeterRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(ShutdownEvent event) io.micrometer.core.instrument.binder.MeterBinderList<io.micrometer.core.instrument.Tag>getTags()voidinit(StartupEvent event) io.micrometer.core.instrument.binder.MeterBinderinstantiate(List<io.micrometer.core.instrument.Tag> tags) Use reflection to avoid calling a class touching Java 21+ APIs.
-
Field Details
-
registry
final io.micrometer.core.instrument.MeterRegistry registry
-
-
Constructor Details
-
VirtualThreadCollector
-
-
Method Details
-
instantiate
public io.micrometer.core.instrument.binder.MeterBinder instantiate(List<io.micrometer.core.instrument.Tag> tags) Use reflection to avoid calling a class touching Java 21+ APIs.- Parameters:
tags- the tags.- Returns:
- the binder,
nullif the instantiation failed.
-
getBinder
public io.micrometer.core.instrument.binder.MeterBinder getBinder() -
getTags
-
init
-
close
-