Skip to content

Commit

Permalink
fix etw metrics build
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Oct 4, 2024
1 parent 5119dc6 commit 3aa7a38
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions opentelemetry-etw-metrics/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use opentelemetry_sdk::metrics::{
ScopeMetrics, Temporality,
},
exporter::PushMetricsExporter,
reader::{AggregationSelector, DefaultAggregationSelector, TemporalitySelector},
Aggregation, InstrumentKind,
reader::TemporalitySelector,
InstrumentKind,
};
use prost::Message;

Expand Down Expand Up @@ -51,12 +51,6 @@ impl TemporalitySelector for MetricsExporter {
}
}

impl AggregationSelector for MetricsExporter {
fn aggregation(&self, kind: InstrumentKind) -> Aggregation {
DefaultAggregationSelector::new().aggregation(kind)
}
}

impl Debug for MetricsExporter {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.write_str("ETW metrics exporter")
Expand Down

0 comments on commit 3aa7a38

Please sign in to comment.