Skip to main content

K8S_SERVICE_ENDPOINT_ZONE

Constant K8S_SERVICE_ENDPOINT_ZONE 

pub const K8S_SERVICE_ENDPOINT_ZONE: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

The zone of the service endpoint.

§Notes

The zone where the endpoint is located, typically corresponding to a failure domain. This attribute aligns with the zone field of endpoints in the K8s EndpointSlice. It enables zone-aware monitoring of service endpoint distribution and supports features like Topology Aware Routing.

If the zone is not populated (e.g., nodes without the topology.kubernetes.io/zone label), the attribute value will be an empty string.

§Examples

  • "us-east-1a"
  • "us-west-2b"
  • "zone-a"
  • ""