Interface JvmThreadCountMeterConvention
- All Known Implementing Classes:
MicrometerJvmThreadCountMeterConvention, OpenTelemetryJvmThreadCountMeterConvention
public interface JvmThreadCountMeterConvention
Convention for JVM thread count metrics.
- Since:
- 1.18.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Canonical name of the meter.default TagsgetTags(Thread.State state) Tags specific to this meter convention.Create aJvmThreadCountMeterConventionwith the given name.of(String name, Function<Thread.State, Tags> tagsFunction) Create aJvmThreadCountMeterConventionwith the given name and tags function.
-
Method Details
-
getName
-
getTags
Tags specific to this meter convention.- Parameters:
state- the thread state from which to derive tags- Returns:
- tags to use with the meter
-
of
Create aJvmThreadCountMeterConventionwith the given name.- Parameters:
name- meter name- Returns:
- a new convention instance
-
of
Create aJvmThreadCountMeterConventionwith the given name and tags function.- Parameters:
name- meter nametagsFunction- function to derive tags from aThread.State- Returns:
- a new convention instance
-