Skip to content

Commit ad88615

Browse files
neoeinsteinlalitb
andauthored
docs: fix unit in metrics semantic conventions example (#2794)
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
1 parent 5bcaf30 commit ad88615

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//! let meter = global::meter("mylibraryname");
2525
//! let histogram = meter
2626
//! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION)
27-
//! .with_unit("By")
27+
//! .with_unit("s")
2828
//! .with_description("Duration of HTTP server requests.")
2929
//! .build();
3030
//! ```
@@ -76,4 +76,4 @@
7676
pub const {{ metric.metric_name | screaming_snake_case }}: &str = "{{ metric.metric_name }}";
7777

7878
{% endfor %}
79-
{% endfor %}
79+
{% endfor %}

opentelemetry-semantic-conventions/src/metric.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! let meter = global::meter("mylibraryname");
2424
//! let histogram = meter
2525
//! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION)
26-
//! .with_unit("By")
26+
//! .with_unit("s")
2727
//! .with_description("Duration of HTTP server requests.")
2828
//! .build();
2929
//! ```

0 commit comments

Comments
 (0)