Skip to content

Commit f900a99

Browse files
fixed spelling
1 parent 24ab5bd commit f900a99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/examples/metrics/reader/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These examples show how to customize the metrics that are output by the SDK usin
66
* preferred_aggregation.py: Shows how to configure the preferred aggregation for metric instrument types.
77
* preferred_temporality.py: Shows how to configure the preferred temporality for metric instrument types.
88
* preferred_exemplarfilter.py: Shows how to configure the exemplar filter.
9-
* synchronous_guage_reader.py: Shows how to use `PeriodicExportingMetricReader` in a synchronous manner to explicitly control the collection of metrics.
9+
* synchronous_gauge_reader.py: Shows how to use `PeriodicExportingMetricReader` in a synchronous manner to explicitly control the collection of metrics.
1010

1111
The source files of these examples are available :scm_web:`here <docs/examples/metrics/reader/>`.
1212

docs/examples/metrics/reader/synchronous_guage_read.py renamed to docs/examples/metrics/reader/synchronous_gauge_read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def read_humidity(options: CallbackOptions) -> Iterable[Observation]:
5858

5959
meter = get_meter_provider().get_meter("synchronous_read", "0.1.2")
6060

61-
guage = meter.create_observable_gauge(
61+
gauge = meter.create_observable_gauge(
6262
name="synchronous_gauge_temperature",
6363
description="Gauge value captured synchronously",
6464
callbacks=[read_temperature],
@@ -74,12 +74,12 @@ def read_humidity(options: CallbackOptions) -> Iterable[Observation]:
7474
temperature = 35.0
7575
reader.collect()
7676
# Invoking `collect` will read all measurements assigned to the reader
77-
guage2 = meter.create_observable_gauge(
77+
gauge2 = meter.create_observable_gauge(
7878
name="synchronous_gauge_humidity",
7979
description="Gauge value captured synchronously",
8080
callbacks=[read_humidity],
8181
)
82-
print("--- Multiple Measurments ---", flush=True)
82+
print("--- Multiple Measurements ---", flush=True)
8383
temperature = 20.0
8484
humidity = 50.0
8585
reader.collect()

0 commit comments

Comments
 (0)