diff --git a/opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2 b/opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2 index 6ba1ca2100..0e9a564c23 100644 --- a/opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2 +++ b/opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2 @@ -24,7 +24,7 @@ //! let meter = global::meter("mylibraryname"); //! let histogram = meter //! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION) -//! .with_unit("By") +//! .with_unit("s") //! .with_description("Duration of HTTP server requests.") //! .build(); //! ``` @@ -76,4 +76,4 @@ pub const {{ metric.metric_name | screaming_snake_case }}: &str = "{{ metric.metric_name }}"; {% endfor %} -{% endfor %} \ No newline at end of file +{% endfor %} diff --git a/opentelemetry-semantic-conventions/src/metric.rs b/opentelemetry-semantic-conventions/src/metric.rs index 086d6a9b6b..89bb91b46a 100644 --- a/opentelemetry-semantic-conventions/src/metric.rs +++ b/opentelemetry-semantic-conventions/src/metric.rs @@ -23,7 +23,7 @@ //! let meter = global::meter("mylibraryname"); //! let histogram = meter //! .u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION) -//! .with_unit("By") +//! .with_unit("s") //! .with_description("Duration of HTTP server requests.") //! .build(); //! ```