public static class LongTaskTimer.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
LongTaskTimer.Builder |
description(java.lang.String description) |
LongTaskTimer |
register(MeterRegistry registry)
Add the long task timer to a single registry, or return an existing long task timer in that registry.
|
LongTaskTimer.Builder |
tag(java.lang.String key,
java.lang.String value) |
LongTaskTimer.Builder |
tags(java.lang.Iterable<Tag> tags) |
LongTaskTimer.Builder |
tags(java.lang.String... tags) |
public LongTaskTimer.Builder tags(java.lang.String... tags)
tags
- Must be an even number of arguments representing key/value pairs of tags.public LongTaskTimer.Builder tags(java.lang.Iterable<Tag> tags)
tags
- Tags to add to the eventual long task timer.public LongTaskTimer.Builder tag(java.lang.String key, java.lang.String value)
key
- The tag key.value
- The tag value.public LongTaskTimer.Builder description(@Nullable java.lang.String description)
description
- Description text of the eventual long task timer.public LongTaskTimer register(MeterRegistry registry)
registry
- A registry to add the long task timer to, if it doesn't already exist.