Skip to content

Commit d88e83d

Browse files
authored
Fix invalid import paths under "Getting Started" (#1574)
1 parent 27cf653 commit d88e83d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Project versioning information and stability guarantees can be found
6666
```rust
6767
use opentelemetry::{
6868
global,
69-
sdk::trace::TracerProvider,
7069
trace::{Tracer, TracerProvider as _},
7170
};
71+
use opentelemetry_sdk::trace::TracerProvider;
7272

7373
fn main() {
7474
// Create a new trace pipeline that prints to stdout
@@ -86,6 +86,16 @@ fn main() {
8686
}
8787
```
8888

89+
The example above requires the following packages:
90+
91+
```toml
92+
# Cargo.toml
93+
[dependencies]
94+
opentelemetry = "0.21"
95+
opentelemetry_sdk = "0.21"
96+
opentelemetry-stdout = { version = "0.2", features = ["trace"] }
97+
```
98+
8999
See the [examples](./examples) directory for different integration patterns.
90100

91101
## Ecosystem

0 commit comments

Comments
 (0)