Constant K8S_SERVICE_TRAFFIC_DISTRIBUTION
pub const K8S_SERVICE_TRAFFIC_DISTRIBUTION: &'static str;Available on crate features
opentelemetry and semconv_experimental only.Expand description
The traffic distribution policy for the Service.
§Notes
Specifies how traffic is distributed to endpoints for this Service.
This attribute aligns with the trafficDistribution field of the
K8s ServiceSpec.
Known values include PreferSameZone (prefer endpoints in the same zone as the client) and
PreferSameNode (prefer endpoints on the same node, fallback to same zone, then cluster-wide).
If this field is not set on the Service, the attribute SHOULD NOT be emitted.
When not set, Kubernetes distributes traffic evenly across all endpoints cluster-wide.
§Examples
"PreferSameZone""PreferSameNode"