Module rama::telemetry::opentelemetry::semantic_conventions::metric
Expand description
§Metric Semantic Conventions
The metric semantic conventions define a set of standardized attributes to
be used in Meter
s.
§Usage
use opentelemetry::{global, KeyValue};
use opentelemetry_semantic_conventions as semconv;
// Assumes we already have an initialized `MeterProvider`
// See: https://github.com/open-telemetry/opentelemetry-rust/blob/main/examples/metrics-basic/src/main.rs
// for an example
let meter = global::meter("mylibraryname");
let histogram = meter
.u64_histogram(semconv::metric::HTTP_SERVER_REQUEST_DURATION)
.with_unit("By")
.with_description("Duration of HTTP server requests.")
.init();
Constants§
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- DB_CLIENT_CONNECTIONS_CREATE_TIMEDeprecatedDescription
- DB_CLIENT_CONNECTIONS_IDLE_MAXDeprecatedDescription
- DB_CLIENT_CONNECTIONS_IDLE_MINDeprecatedDescription
- DB_CLIENT_CONNECTIONS_MAXDeprecatedDescription
- DB_CLIENT_CONNECTIONS_PENDING_REQUESTSDeprecatedDescription
- DB_CLIENT_CONNECTIONS_TIMEOUTSDeprecatedDescription
- DB_CLIENT_CONNECTIONS_USAGEDeprecatedDescription
- DB_CLIENT_CONNECTIONS_USE_TIMEDeprecatedDescription
- DB_CLIENT_CONNECTIONS_WAIT_TIMEDeprecatedDescription
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- JVM_BUFFER_MEMORY_USAGEDeprecatedDescription
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- MESSAGING_PROCESS_MESSAGESDeprecatedDescription
- MESSAGING_PUBLISH_DURATIONDeprecatedDescription
- MESSAGING_PUBLISH_MESSAGESDeprecatedDescription
- MESSAGING_RECEIVE_DURATIONDeprecatedDescription
- MESSAGING_RECEIVE_MESSAGESDeprecatedDescription
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description