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.")
.build();
Constants§
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- Description
- DB_
CLIENT_ CONNECTIONS_ CREATE_ TIME Deprecated Description - DB_
CLIENT_ CONNECTIONS_ IDLE_ MAX Deprecated Description - DB_
CLIENT_ CONNECTIONS_ IDLE_ MIN Deprecated Description - DB_
CLIENT_ CONNECTIONS_ MAX Deprecated Description - DB_
CLIENT_ CONNECTIONS_ PENDING_ REQUESTS Deprecated Description - DB_
CLIENT_ CONNECTIONS_ TIMEOUTS Deprecated Description - DB_
CLIENT_ CONNECTIONS_ USAGE Deprecated Description - DB_
CLIENT_ CONNECTIONS_ USE_ TIME Deprecated Description - DB_
CLIENT_ CONNECTIONS_ WAIT_ TIME Deprecated 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
- Description
- Description
- Description
- Description
- Description
- Description
- JVM_
BUFFER_ MEMORY_ USAGE Deprecated 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
- MESSAGING_
CLIENT_ PUBLISHED_ MESSAGES Deprecated Description - Description
- Description
- MESSAGING_
PROCESS_ MESSAGES Deprecated Description - MESSAGING_
PUBLISH_ DURATION Deprecated Description - MESSAGING_
PUBLISH_ MESSAGES Deprecated Description - MESSAGING_
RECEIVE_ DURATION Deprecated Description - MESSAGING_
RECEIVE_ MESSAGES Deprecated 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
- Description
- Description
- Description
- Description
- Description