Skip to content

Commit

Permalink
Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frigus02 committed Jul 20, 2024
1 parent 800fce6 commit f416c3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
//!
//! ## Trace
//!
//! This requires the **trace** feature (enabled by default).
//!
//! Configure a OpenTelemetry pipeline using the Application Insights exporter and start creating
//! spans (this example requires the **opentelemetry-http/reqwest** feature):
//!
Expand All @@ -28,6 +30,8 @@
//!
//! ## Logs
//!
//! This requires the **logs** feature (enabled by default).
//!
//! ```no_run
//! use log::{Level, info};
//! use opentelemetry_appender_log::OpenTelemetryLogBridge;
Expand Down Expand Up @@ -61,6 +65,8 @@
//!
//! ## Metrics
//!
//! This requires the **metrics** feature (enabled by default).
//!
//! ```no_run
//! use opentelemetry::global;
//! use opentelemetry_sdk::metrics::{PeriodicReader, SdkMeterProvider};
Expand Down
1 change: 1 addition & 0 deletions src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ impl<C> Exporter<C> {
}
}

#[cfg_attr(docsrs, doc(cfg(feature = "trace")))]
impl<C> SpanExporter for Exporter<C>
where
C: HttpClient + 'static,
Expand Down

0 comments on commit f416c3a

Please sign in to comment.