public final class MetricsUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFailureTagsWithException(java.util.Set<io.micrometer.core.instrument.Tag> tags,
java.lang.Throwable throwable)
Convenience method to add failure status and exception cause to an existing set of tags.
|
static void |
addSuccessTags(java.util.Set<io.micrometer.core.instrument.Tag> tags)
Convenience method to add success tag to an existing set of tags.
|
static java.util.Set<io.micrometer.core.instrument.Tag> |
newFailureTagsSetForException(java.lang.Throwable t)
Convenience method that creates a tag set pre-populated with failure status and exception details.
|
static java.util.Set<io.micrometer.core.instrument.Tag> |
newSuccessTagsSet()
Convenience method that creates a tag set pre-populated with success status.
|
public static java.util.Set<io.micrometer.core.instrument.Tag> newSuccessTagsSet()
public static void addSuccessTags(java.util.Set<io.micrometer.core.instrument.Tag> tags)
tags - the set of tags to add success tags topublic static java.util.Set<io.micrometer.core.instrument.Tag> newFailureTagsSetForException(java.lang.Throwable t)
t - the exceptionpublic static void addFailureTagsWithException(java.util.Set<io.micrometer.core.instrument.Tag> tags,
java.lang.Throwable throwable)
tags - the set of existing tagsthrowable - the exception to be tagged