@@ -154,10 +154,10 @@ public class ContextUsage {
154154 ExecutorService executorService = Executors . newSingleThreadExecutor();
155155 ScheduledExecutorService scheduledExecutorService = Executors . newScheduledThreadPool(1 );
156156
157- // Context instances can be explicitly passed around application code, but its more convenient
157+ // Context instances can be explicitly passed around application code, but it's more convenient
158158 // to use implicit context, calling Context.makeCurrent() and accessing via Context.current().
159159 // Context provides a number of utilities for implicit context propagation. These utilities wrap
160- // utility classes like Scheduler, and ExecutorService, ScheduledExecutorService, Runnable,
160+ // utility classes like Scheduler, ExecutorService, ScheduledExecutorService, Runnable,
161161 // Callable, Consumer, Supplier, Function, etc and modify their behavior to call
162162 // Context.makeCurrent() before running.
163163 context. wrap(ContextUsage :: callable). call();
@@ -995,7 +995,7 @@ public class AsyncCounterUsage {
995995 // Uncomment to optionally change the type to double
996996 // .ofDoubles()
997997 .buildWithCallback(
998- // the callback is invoked a MetricReader reads metrics
998+ // the callback is invoked when a MetricReader reads metrics
999999 observableMeasurement - > {
10001000 long currentWidgetCount = widgetCount. get();
10011001
@@ -1116,7 +1116,7 @@ public class AsyncUpDownCounterUsage {
11161116 // Uncomment to optionally change the type to double
11171117 // .ofDoubles()
11181118 .buildWithCallback(
1119- // the callback is invoked a MetricReader reads metrics
1119+ // the callback is invoked when a MetricReader reads metrics
11201120 observableMeasurement - > {
11211121 long currentWidgetCount = queueLength. get();
11221122
@@ -1229,7 +1229,7 @@ public class GaugeUsage {
12291229 private static final Attributes WIDGET_RED_CIRCLE = Util . WIDGET_RED_CIRCLE ;
12301230
12311231 public static void gaugeUsage (Meter meter ) {
1232- // Construct a gauge to record measurements as they occur when cannot be spatially
1232+ // Construct a gauge to record measurements as they occur, which cannot be spatially
12331233 // re-aggregated.
12341234 DoubleGauge gauge =
12351235 meter
@@ -1299,7 +1299,7 @@ public class AsyncGaugeUsage {
12991299 // Uncomment to optionally change the type to long
13001300 // .ofLongs()
13011301 .buildWithCallback(
1302- // the callback is invoked a MetricReader reads metrics
1302+ // the callback is invoked when a MetricReader reads metrics
13031303 observableMeasurement - > {
13041304 double currentWidgetCount = processingLineTemp. get();
13051305
0 commit comments