Skip to content

Commit

Permalink
Update docs/modules/ROOT/pages/concepts/meter-provider.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Tommy Ludwig <[email protected]>
  • Loading branch information
jonatan-ivanov and shakuzen authored Mar 27, 2024
1 parent f8ffd15 commit 315892c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/concepts/meter-provider.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Result result = job.execute();
sample.stop(timerProvider.withTags("status", result.status())); <2>
----
<1> Definition of the `MeterProvider` for `Timer` with all the "static" fields necessary. Please nothe the `withRegistry` method call.
<1> Definition of the `MeterProvider` for `Timer` with all the "static" fields necessary. Please note the `withRegistry` method call.
<2> Definition of the dynamic tags. Note that only those tags are defined here that are dynamic and everying else is defined where the `MeterProvider` is created. The `withTags` method returns a `Timer` that is created using the tags defined in `withTags` plus everything else that is defined by the `MeterProvider`.

This and the previous example produce the same output, the only difference is the amount of boilerplate in your code and the amount of builder objects created in the heap.

0 comments on commit 315892c

Please sign in to comment.