@@ -23,7 +23,7 @@ Implementations MAY define a `Measure` data type, constructed from the parameter
2323Measure MAY have getters for retrieving all of the information used in ` Measure ` definition.
2424Once created, Measure metadata is immutable.
2525
26- Example in Java
26+ Example in Java:
2727``` java
2828private static final MeasureDouble RPC_LATENCY =
2929 MeasureDouble . create(" grpc.io/latency" , " latency" , " ms" );
@@ -52,8 +52,8 @@ contextual information of an exemplar, for example trace id, span id or dropped
5252
5353Users should record Measurements against a context, either an explicit context or the implicit
5454current context. Tags from the context are recorded with the Measurements if they are any.
55- When recording against an explicit context, implmentations should allow users to add extra tags,
56- and those tags should not be added to current context. .
55+ When recording against an explicit context, implementations should allow users to add extra tags,
56+ and those tags should not be added to the current context.
5757
5858Note that there is no implicit recording for exemplars. If you want to record a ` Measurement `
5959against an exemplar, you have to explicitly pass a string-string map.
@@ -64,7 +64,7 @@ functionality can be provided through one of the following options:
6464argument. e.g. ` record(List<Measurement>) ` or ` record(...Measurement) ` .
6565* As a ` record ` method of the appropriate data type. e.g. ` MeasurementMap.record() ` .
6666
67- Example in Java
67+ Example in Java:
6868
6969``` java
7070// Static constants.
@@ -80,7 +80,7 @@ private static final TagKey MY_KEY = TagKey.create("my.org/key");
8080MeasurementMap measurementMap = new MeasurementMap ();
8181measurementMap. put(RPC_LATENCY , 10.3 );
8282measurementMap. put(RPC_BYTES_SENT , 124 );
83- measurementMap. record(); // reads context from thread-local.
83+ measurementMap. record(); // Reads context from thread-local.
8484```
8585
8686``` java
@@ -90,7 +90,7 @@ measurementMap.put(RPC_LATENCY, 15);
9090measurementMap. put(RPC_BYTES_SENT , 200 );
9191TagValue value = TagValue . create(" some value" );
9292measurementMap. record(
93- Tags . getTagger(). currentBuilder(). put(MY_KEY , value). build()); // record against an extra tag.
93+ Tags . getTagger(). currentBuilder(). put(MY_KEY , value). build()); // Records against an extra tag.
9494```
9595
9696``` java
0 commit comments