Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion opentelemetry/src/metrics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;

mod instruments;
mod meter;
pub(crate) mod noop;
pub mod noop;
pub use instruments::{
counter::{Counter, ObservableCounter},
gauge::{Gauge, ObservableGauge},
Expand All @@ -14,6 +14,7 @@ pub use instruments::{
SyncInstrument,
};
pub use meter::{Meter, MeterProvider};
pub use noop::NoopMeterProvider;

/// SDK implemented trait for creating instruments
pub trait InstrumentProvider {
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry/src/metrics/noop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use super::instruments::SyncInstrument;

/// A no-op instance of a `MetricProvider`
#[derive(Debug, Default)]
pub(crate) struct NoopMeterProvider {
pub struct NoopMeterProvider {
_private: (),
}

impl NoopMeterProvider {
/// Create a new no-op meter provider.
pub(crate) fn new() -> Self {
pub fn new() -> Self {
NoopMeterProvider { _private: () }
}
}
Expand Down
Loading