Skip to content

Commit ca1a3c3

Browse files
DOC-10099 emitInterval clarifications
1 parent dcb0f53 commit ca1a3c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

modules/howtos/pages/observability-metrics.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ Or, sent into the OpenTelemetry or Micrometer libraries, where they can be sent
1818

1919
The default implementation aggregates and logs request and response metrics.
2020

21-
By default the metrics will be emitted every 10 minutes, but you can customize the emit interval as well:
21+
By default the metrics will be emitted every 10 minutes, but you can customize the emit interval as well.
22+
Here is an example with `emitInterval` set at 30 seconds:
2223

2324
[source,java]
2425
----
2526
include::devguide:example$java/Metrics.java[tag=metrics-enable-custom,indent=0]
2627
----
2728

2829
Once enabled, there is no further configuration needed. The `LoggingMeter` will emit the collected request statistics every interval.
29-
A possible report looks like this (prettified for better readability):
30+
A possible report -- in this case for an `emitInterval` of 10 seconds -- looks like this (prettified for better readability):
3031

3132
[source,json]
3233
----

0 commit comments

Comments
 (0)