Skip to content

Commit c3c5ac1

Browse files
committed
Implement as_any() method for OtelMeterProvider
1 parent c546da5 commit c3c5ac1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

rust-runtime/aws-smithy-observability-otel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-smithy-observability-otel"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = [
55
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
66
]

rust-runtime/aws-smithy-observability-otel/src/meter.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ impl ProvideMeter for OtelMeterProvider {
286286
fn get_meter(&self, scope: &'static str, _attributes: Option<&Attributes>) -> Meter {
287287
Meter::new(Arc::new(MeterWrap(self.meter_provider.meter(scope))))
288288
}
289+
290+
fn as_any(&self) -> &dyn std::any::Any {
291+
self
292+
}
289293
}
290294

291295
#[cfg(test)]

0 commit comments

Comments
 (0)