Skip to content

Commit 3a8ffec

Browse files
authored
docs: fix unit in metrics semantic conventions example
1 parent 8aa5b00 commit 3a8ffec

File tree

1 file changed

+2
-2
lines changed
  • opentelemetry-semantic-conventions/scripts/templates/registry/rust

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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 %}

0 commit comments

Comments
 (0)