Macros
load_reporting.h File Reference
#include <grpc/impl/codegen/port_platform.h>
Include dependency graph for load_reporting.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRPC_LB_COST_MD_KEY   "lb-cost-bin"
 
#define GRPC_LB_TOKEN_MD_KEY   "lb-token"
 

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.

Definition at line 42 of file load_reporting.h.

◆ 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.

Definition at line 35 of file load_reporting.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:22