You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/concepts/registry.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ composite.add(simple); <2>
32
32
compositeCounter.increment(); <3>
33
33
----
34
34
35
-
1. Increments are NOOP'd until there is a registry in the composite. The counter's count still yields 0 at this point.
36
-
2. A counter named `counter` is registered to the simple registry.
37
-
3. The simple registry counter is incremented, along with counters for any other registries in the composite.
35
+
<1> Increments are NOOP'd until there is a registry in the composite. The counter's count still yields 0 at this point.
36
+
<2> A counter named `counter` is registered to the simple registry.
37
+
<3> The simple registry counter is incremented, along with counters for any other registries in the composite.
38
38
====
39
39
40
40
== Global Registry
@@ -64,7 +64,7 @@ class MyApplication {
64
64
}
65
65
----
66
66
67
-
1. Wherever possible (and especially where instrumentation performance is critical), store `Meter` instances in fields to avoid a lookup on their name or tags on each use.
68
-
2. When tags need to be determined from local context, you have no choice but to construct or lookup the Meter inside your method body. The lookup cost is just a single hash lookup, so it is acceptable for most use cases.
69
-
3. It is OK to add registries _after_ meters have been created with code like `Metrics.counter(...)`. These meters are added to each registry, as it is bound to the global composite.
67
+
<1> Wherever possible (and especially where instrumentation performance is critical), store `Meter` instances in fields to avoid a lookup on their name or tags on each use.
68
+
<2> When tags need to be determined from local context, you have no choice but to construct or lookup the Meter inside your method body. The lookup cost is just a single hash lookup, so it is acceptable for most use cases.
69
+
<3> It is OK to add registries _after_ meters have been created with code like `Metrics.counter(...)`. These meters are added to each registry, as it is bound to the global composite.
0 commit comments