T
- The type of the state object from which the timer values are extracted.public static class FunctionTimer.Builder<T> extends Object
Modifier and Type | Method and Description |
---|---|
FunctionTimer.Builder<T> |
description(String description) |
FunctionTimer |
register(MeterRegistry registry)
Add the function timer to a single registry, or return an existing function timer in that registry.
|
FunctionTimer.Builder<T> |
tag(String key,
String value) |
FunctionTimer.Builder<T> |
tags(Iterable<Tag> tags) |
FunctionTimer.Builder<T> |
tags(String... tags) |
public FunctionTimer.Builder<T> tags(String... tags)
tags
- Must be an even number of arguments representing key/value pairs of tags.public FunctionTimer.Builder<T> tags(Iterable<Tag> tags)
tags
- Tags to add to the eventual function timer.public FunctionTimer.Builder<T> tag(String key, String value)
key
- The tag key.value
- The tag value.public FunctionTimer.Builder<T> description(@Nullable String description)
description
- Description text of the eventual function timer.public FunctionTimer register(MeterRegistry registry)
registry
- A registry to add the function timer to, if it doesn't already exist.Copyright © 2018. All rights reserved.