GRPC Core  43.0.0
Macros
load_reporting.h File Reference
#include <grpc/support/port_platform.h>

Go to the source code of this file.

Macros

#define GRPC_LB_TOKEN_MD_KEY   "lb-token"
 Metadata key for the gRPC LB load balancer token. More...
 
#define GRPC_LB_COST_MD_KEY   "lb-cost-bin"
 Metadata key for gRPC LB cost reporting. More...
 

Macro Definition Documentation

◆ GRPC_LB_COST_MD_KEY

#define GRPC_LB_COST_MD_KEY   "lb-cost-bin"

Metadata key for gRPC LB cost reporting.

The value corresponding to this key is an opaque binary blob reported by the backend as part of its trailing metadata containing cost information for the call.

◆ GRPC_LB_TOKEN_MD_KEY

#define GRPC_LB_TOKEN_MD_KEY   "lb-token"

Metadata key for the gRPC LB load balancer token.

The value corresponding to this key is an opaque token that is given to the frontend as part of each pick; the frontend sends this token to the backend in each request it sends when using that pick. The token is used by the backend to verify the request and to allow the backend to report load to the gRPC LB system.