Skip to content

Commit d98a0d6

Browse files
committed
Add setTimestamp method to documentation
1 parent 396c7ce commit d98a0d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ Examples:
158158
setNamespace("MyApplication")
159159
```
160160

161+
- MetricsLogger **setTimestamp**(Instant timestamp)
162+
163+
Sets the timestamp of the metrics. If not set, current time of the client will be used.
164+
165+
Examples:
166+
167+
```java
168+
setTimestamp(Instant.now())
169+
```
170+
161171
- **flush**()
162172

163173
Flushes the current MetricsContext to the configured sink and resets all properties, dimensions and metric values. The namespace and default dimensions will be preserved across flushes.

0 commit comments

Comments
 (0)