Skip to content

Commit

Permalink
Fix invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Palmieri committed May 20, 2022
1 parent 2722620 commit 3a6d7a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-semantic-conventions/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
//! let tracer = global::tracer("my-component");
//! let _span = tracer
//! .span_builder("span-name")
//! .with_attributes(OrderMap::from([
//! .with_attributes([
//! semcov::trace::NET_PEER_IP.string("10.0.0.1"),
//! semcov::trace::NET_PEER_PORT.i64(80),
//! ]))
//! ])
//! .start(&tracer);
//! ```
Expand Down

0 comments on commit 3a6d7a3

Please sign in to comment.