public interface Timers
Modifier and Type | Method and Description |
---|---|
void |
recordExecutionTime(java.lang.String bucket,
long timeInMs)
Records an execution time in milliseconds for the specified named operation.
|
void |
recordExecutionTime(java.lang.String bucket,
long timeInMs,
double sampleRate)
Records an execution time in milliseconds for the specified named operation.
|
void |
recordExecutionTime(java.lang.String bucket,
long timeInMs,
double sampleRate,
java.util.Map<java.lang.String,java.lang.String> tags)
Records an execution time in milliseconds for the specified named operation.
|
void |
recordExecutionTime(java.lang.String bucket,
long timeInMs,
java.util.Map<java.lang.String,java.lang.String> tags)
Records an execution time in milliseconds for the specified named operation.
|
default void |
time(java.lang.String bucket,
long timeInMs)
Convenience method equivalent to
recordExecutionTime(String, long) . |
default void |
time(java.lang.String bucket,
long timeInMs,
double sampleRate)
Convenience method equivalent to
recordExecutionTime(String, long, double) . |
default void |
time(java.lang.String bucket,
long timeInMs,
double sampleRate,
java.util.Map<java.lang.String,java.lang.String> tags)
Convenience method equivalent to
recordExecutionTime(String, long, double, Map) . |
default void |
time(java.lang.String bucket,
long timeInMs,
java.util.Map<java.lang.String,java.lang.String> tags)
Convenience method equivalent to
recordExecutionTime(String, long, Map) . |
void recordExecutionTime(java.lang.String bucket, long timeInMs)
bucket
- name of the timed operationtimeInMs
- time in millisecondsvoid recordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate)
bucket
- name of the timed operationtimeInMs
- time in millisecondssampleRate
- percentage of time metric to be sentvoid recordExecutionTime(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)
bucket
- name of the timed operationtimeInMs
- time in millisecondstags
- map of tags to be added to the datavoid recordExecutionTime(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)
bucket
- name of the timed operationtimeInMs
- time in millisecondssampleRate
- percentage of time metric to be senttags
- map of tags to be added to the datadefault void time(java.lang.String bucket, long timeInMs)
recordExecutionTime(String, long)
.
Records an execution time in milliseconds for the specified named operation.bucket
- name of the timed operationtimeInMs
- time in millisecondsdefault void time(java.lang.String bucket, long timeInMs, double sampleRate)
recordExecutionTime(String, long, double)
.
Records an execution time in milliseconds for the specified named operation.bucket
- name of the timed operationtimeInMs
- time in millisecondssampleRate
- percentage of time metric to be sentdefault void time(java.lang.String bucket, long timeInMs, java.util.Map<java.lang.String,java.lang.String> tags)
recordExecutionTime(String, long, Map)
.
Records an execution time in milliseconds for the specified named operation.bucket
- name of the timed operationtimeInMs
- time in millisecondstags
- map of tags to be added to the datadefault void time(java.lang.String bucket, long timeInMs, double sampleRate, java.util.Map<java.lang.String,java.lang.String> tags)
recordExecutionTime(String, long, double, Map)
.
Records an execution time in milliseconds for the specified named operation.bucket
- name of the timed operationtimeInMs
- time in millisecondssampleRate
- percentage of time metric to be senttags
- map of tags to be added to the data