OpenTelemetry SDK
    Preparing search index...

    Variable ATTR_K8S_SERVICE_TRAFFIC_DISTRIBUTIONConst Experimental

    ATTR_K8S_SERVICE_TRAFFIC_DISTRIBUTION: "k8s.service.traffic_distribution" = ...

    The traffic distribution policy for the Service.

    PreferSameZone
    
    PreferSameNode
    

    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.

    This attribute is experimental and is subject to breaking changes in minor releases of @opentelemetry/semantic-conventions.