diff --git a/opentelemetry-semantic-conventions/src/trace.rs b/opentelemetry-semantic-conventions/src/trace.rs index c14671c3ac..01448e16d8 100644 --- a/opentelemetry-semantic-conventions/src/trace.rs +++ b/opentelemetry-semantic-conventions/src/trace.rs @@ -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); //! ```