Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 4457606

Browse files
authored
Minor text fixes. (#149)
1 parent 6ef5b77 commit 4457606

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

stats/Record.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Implementations MAY define a `Measure` data type, constructed from the parameter
2323
Measure MAY have getters for retrieving all of the information used in `Measure` definition.
2424
Once created, Measure metadata is immutable.
2525

26-
Example in Java
26+
Example in Java:
2727
```java
2828
private 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

5353
Users should record Measurements against a context, either an explicit context or the implicit
5454
current 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

5858
Note that there is no implicit recording for exemplars. If you want to record a `Measurement`
5959
against 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:
6464
argument. 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");
8080
MeasurementMap measurementMap = new MeasurementMap();
8181
measurementMap.put(RPC_LATENCY, 10.3);
8282
measurementMap.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);
9090
measurementMap.put(RPC_BYTES_SENT, 200);
9191
TagValue value = TagValue.create("some value");
9292
measurementMap.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

Comments
 (0)