Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy committed Jan 8, 2025
1 parent 998ea03 commit 3df0b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/layers/otelmetrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,19 @@ impl OtelMetricsLayerBuilder {
pub fn register(self) -> OtelMetricsLayer {
let meter = global::meter("opendal");
let duration_seconds = meter
.f64_histogram("operation.operation.duration")
.f64_histogram("opendal.operation.duration")
.with_description("Duration of operations")
.with_unit("second")
.with_boundaries(self.operation_duration_seconds_boundaries)
.build();
let bytes = meter
.u64_histogram("operation.operation.size")
.u64_histogram("opendal.operation.size")
.with_description("Size of operations")
.with_unit("byte")
.with_boundaries(self.operation_bytes_boundaries)
.build();
let errors = meter
.u64_counter("operation.operation.errors")
.u64_counter("opendal.operation.errors")
.with_description("Number of operation errors")
.build();

Expand Down

0 comments on commit 3df0b84

Please sign in to comment.