Skip to content

Commit 9011f63

Browse files
authored
Nit spelling fixes (#2443)
1 parent b9a422b commit 9011f63

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.cspell.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
"nocapture",
5050
"Ochtman",
5151
"opentelemetry",
52+
"OTELCOL",
5253
"OTLP",
54+
"periodicreader",
5355
"protoc",
5456
"quantile",
5557
"Redelmeier",

opentelemetry-otlp/examples/basic-otlp-http/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ recommended approach when using OTLP exporters. While it can be modified to use
1616
a `SimpleExporter`, this requires enabling feature flag `reqwest-blocking-client` and
1717
making the `main()` a normal main and *not* `tokio::main`
1818

19-
// TODO: Metrics does not work with non tokio main when using `reqwest-blocking-client` today, fix that when switching
19+
// TODO: Metrics does not work with non tokio main when using `reqwest-blocking-client` today, fix that when switching
2020
// default to use own thread.
2121
// TODO: Document `hyper` feature flag when using SimpleProcessor.
2222

@@ -66,14 +66,12 @@ Run the app which exports logs, metrics and traces via OTLP to the collector
6666
cargo run
6767
```
6868

69-
7069
By default the app will use a `reqwest` client to send. A hyper 0.14 client can be used with the `hyper` feature enabled
7170

7271
```shell
7372
cargo run --no-default-features --features=hyper
7473
```
7574

76-
7775
## View results
7876

7977
You should be able to see something similar below with different time and ID in the same console that docker runs.
@@ -135,7 +133,7 @@ SpanEvent #0
135133
-> Timestamp: 2024-05-14 02:15:56.824201397 +0000 UTC
136134
-> DroppedAttributesCount: 0
137135
-> Attributes::
138-
-> bogons: Int(100)
136+
-> some.key: Int(100)
139137
{"kind": "exporter", "data_type": "traces", "name": "logging"}
140138
...
141139
```

opentelemetry-otlp/examples/basic-otlp-http/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
106106

107107
// Create a new tracing::Fmt layer to print the logs to stdout. It has a
108108
// default filter of `info` level and above, and `debug` and above for logs
109-
// from OpenTelemtry crates. The filter levels can be customized as needed.
109+
// from OpenTelemetry crates. The filter levels can be customized as needed.
110110
let filter_fmt = EnvFilter::new("info").add_directive("opentelemetry=debug".parse().unwrap());
111111
let fmt_layer = tracing_subscriber::fmt::layer()
112112
.with_thread_names(true)
@@ -148,7 +148,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
148148
let span = cx.span();
149149
span.add_event(
150150
"Nice operation!".to_string(),
151-
vec![KeyValue::new("bogons", 100)],
151+
vec![KeyValue::new("some.key", 100)],
152152
);
153153
span.set_attribute(KeyValue::new("another.key", "yes"));
154154

opentelemetry-otlp/examples/basic-otlp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ recommended approach when using OTLP exporters. While it can be modified to use
1515
a `SimpleExporter`, this requires the main method to be a `tokio::main` function
1616
since the `tonic` client requires a Tokio runtime. If you prefer not to use
1717
`tokio::main`, then the `init_logs` and `init_traces` functions must be executed
18-
within a Tokio runtime.
18+
within a Tokio runtime.
1919

2020
This examples uses the default `PeriodicReader` for metrics, which uses own
2121
thread for background processing/exporting. Since the `tonic` client requires a
@@ -154,7 +154,7 @@ SpanEvent #0
154154
-> Timestamp: 2024-05-22 20:25:42.8770471 +0000 UTC
155155
-> DroppedAttributesCount: 0
156156
-> Attributes::
157-
-> bogons: Int(100)
157+
-> some.key: Int(100)
158158
{"kind": "exporter", "data_type": "traces", "name": "logging"}
159159
```
160160

opentelemetry-otlp/examples/basic-otlp/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
8080

8181
// Create a new tracing::Fmt layer to print the logs to stdout. It has a
8282
// default filter of `info` level and above, and `debug` and above for logs
83-
// from OpenTelemtry crates. The filter levels can be customized as needed.
83+
// from OpenTelemetry crates. The filter levels can be customized as needed.
8484
let filter_fmt = EnvFilter::new("info").add_directive("opentelemetry=debug".parse().unwrap());
8585
let fmt_layer = tracing_subscriber::fmt::layer()
8686
.with_thread_names(true)

0 commit comments

Comments
 (0)