Skip to content

Commit

Permalink
[Metrics] Remove unnecessary box (open-telemetry#2376)
Browse files Browse the repository at this point in the history
Co-authored-by: Cijo Thomas <[email protected]>
  • Loading branch information
utpilla and cijothomas authored Dec 3, 2024
1 parent c73c938 commit 506a4f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions opentelemetry-sdk/src/metrics/manual_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use super::{
/// # drop(reader)
/// ```
pub struct ManualReader {
inner: Box<Mutex<ManualReaderInner>>,
inner: Mutex<ManualReaderInner>,
temporality: Temporality,
}

Expand Down Expand Up @@ -58,10 +58,10 @@ impl ManualReader {
/// A [MetricReader] which is directly called to collect metrics.
pub(crate) fn new(temporality: Temporality) -> Self {
ManualReader {
inner: Box::new(Mutex::new(ManualReaderInner {
inner: Mutex::new(ManualReaderInner {
sdk_producer: None,
is_shutdown: false,
})),
}),
temporality,
}
}
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/metrics/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct Pipeline {
pub(crate) resource: Resource,
reader: Box<dyn MetricReader>,
views: Vec<Arc<dyn View>>,
inner: Box<Mutex<PipelineInner>>,
inner: Mutex<PipelineInner>,
}

impl fmt::Debug for Pipeline {
Expand Down

0 comments on commit 506a4f9

Please sign in to comment.