Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0007912

Browse files
committedJan 30, 2024
Add warning about Log API that is it not for app users
1 parent e3bee4e commit 0007912

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed
 

‎.cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"reqwest",
5151
"rustc",
5252
"Tescher",
53+
"tracerprovider",
5354
"Zhongyang",
5455
"zipkin"
5556
],

‎README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ above, please let us know! We'd love to add your project to the list!
137137

138138
[`open-telemetry/opentelemetry-rust`]: https://github.com/open-telemetry/opentelemetry-rust
139139
[`opentelemetry-jaeger`]: https://crates.io/crates/opentelemetry-jaeger
140-
[`Jaeger`]: https://www.jaegertracing.io
141140
[`opentelemetry-otlp`]: https://crates.io/crates/opentelemetry-otlp
142141
[`opentelemetry-http`]: https://crates.io/crates/opentelemetry-http
143142
[`opentelemetry-prometheus`]: https://crates.io/crates/opentelemetry-prometheus
@@ -157,7 +156,7 @@ above, please let us know! We'd love to add your project to the list!
157156
[`actix-web-opentelemetry`]: https://crates.io/crates/actix-web-opentelemetry
158157
[`actix-web`]: https://crates.io/crates/actix-web
159158
[`opentelemetry-application-insights`]: https://crates.io/crates/opentelemetry-application-insights
160-
[Azure Application Insights]: https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview
159+
[Azure Application Insights]: https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview
161160
[`opentelemetry-tide`]: https://crates.io/crates/opentelemetry-tide
162161
[`Tide`]: https://crates.io/crates/tide
163162
[`opentelemetry-stackdriver`]: https://crates.io/crates/opentelemetry-stackdriver

‎examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Examples
2-
This folder contains some examples that should help you get start crates from `opentelemetry-rust`.
2+
This directory contains some examples that should help you get start crates from `opentelemetry-rust`.
33

44
## log-basic
55
**Logs**

‎examples/tracing-http-propagator/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ $ cargo run --bin http-server
2424
$ cargo run --bin http-client
2525

2626
# The spans should be visible in stdout in the order that they were exported.
27-
```
27+
```

‎examples/tracing-http-propagator/src/server.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ async fn router(req: Request<Body>) -> Result<Response<Body>, Infallible> {
7676
fn init_tracer() {
7777
global::set_text_map_propagator(TraceContextPropagator::new());
7878

79-
// Install stdout exporter pipeline to be able to retrieve the collected spans.
80-
// For the demonstration, use `Sampler::AlwaysOn` sampler to sample all traces. In a production
81-
// application, use `Sampler::ParentBased` or `Sampler::TraceIdRatioBased` with a desired ratio.
79+
// Setup tracerprovider with stdout exporter
80+
// that prints the spans to stdout.
8281
let provider = TracerProvider::builder()
8382
.with_simple_exporter(SpanExporter::default())
8483
.build();

‎opentelemetry-sdk/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ observability tools.
2929

3030
## OpenTelemetry Benchmarks
3131

32-
From the root folder, run the following command:
32+
From the root directory, run the following command:
3333

3434
```sh
3535
cargo bench

‎opentelemetry/src/logs/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
//! # OpenTelemetry Logs API
2-
1+
//! # OpenTelemetry Logs Bridge API
2+
/// This API is not intended to be called by application developers directly. It
3+
/// is provided for logging library authors to build log appenders.
34
use crate::ExportError;
45

56
use std::{sync::PoisonError, time::Duration};

‎stress/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Usage
1212

13-
Open a console, run the following command from the current folder:
13+
Open a console, run the following command from the current directory:
1414

1515
```sh
1616
cargo run --release --bin X

0 commit comments

Comments
 (0)
Please sign in to comment.