File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
"reqwest-blocking-client" features as default, to align with the
11
11
specification.
12
12
[ 2516] ( https://github.com/open-telemetry/opentelemetry-rust/pull/2516 )
13
+ - Remove unnecessarily public trait ` opentelemetry_otlp::metrics::MetricsClient `
14
+ and ` MetricExporter::new(..) ` method. Use
15
+ ` MetricExporter::builder()...build() ` to obtain ` MetricExporter ` .
13
16
14
17
## 0.27.0
15
18
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl HasHttpConfig for MetricExporterBuilder<HttpExporterBuilderSet> {
121
121
122
122
/// An interface for OTLP metrics clients
123
123
#[ async_trait]
124
- pub trait MetricsClient : fmt:: Debug + Send + Sync + ' static {
124
+ pub ( crate ) trait MetricsClient : fmt:: Debug + Send + Sync + ' static {
125
125
async fn export ( & self , metrics : & mut ResourceMetrics ) -> MetricResult < ( ) > ;
126
126
fn shutdown ( & self ) -> MetricResult < ( ) > ;
127
127
}
@@ -165,7 +165,7 @@ impl MetricExporter {
165
165
}
166
166
167
167
/// Create a new metrics exporter
168
- pub fn new ( client : impl MetricsClient , temporality : Temporality ) -> MetricExporter {
168
+ pub ( crate ) fn new ( client : impl MetricsClient , temporality : Temporality ) -> MetricExporter {
169
169
MetricExporter {
170
170
client : Box :: new ( client) ,
171
171
temporality,
You can’t perform that action at this time.
0 commit comments