Skip to content

Commit

Permalink
Fix invalid import paths under "Getting Started" (#1574)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusirgens authored Feb 24, 2024
1 parent 27cf653 commit d88e83d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ Project versioning information and stability guarantees can be found
```rust
use opentelemetry::{
global,
sdk::trace::TracerProvider,
trace::{Tracer, TracerProvider as _},
};
use opentelemetry_sdk::trace::TracerProvider;

fn main() {
// Create a new trace pipeline that prints to stdout
Expand All @@ -86,6 +86,16 @@ fn main() {
}
```

The example above requires the following packages:

```toml
# Cargo.toml
[dependencies]
opentelemetry = "0.21"
opentelemetry_sdk = "0.21"
opentelemetry-stdout = { version = "0.2", features = ["trace"] }
```

See the [examples](./examples) directory for different integration patterns.

## Ecosystem
Expand Down

0 comments on commit d88e83d

Please sign in to comment.