diff options
author | 2017-04-14 16:01:14 -0700 | |
---|---|---|
committer | 2017-04-15 11:25:48 -0700 | |
commit | a818f72c0c84f386d8e415e12f215453d35eeb21 (patch) | |
tree | 9927bf169546e62f7d456a2f4d9c87111911fae1 /include/grpc/load_reporting.h | |
parent | 52ff44f0d6e5af8428bc9a868593f20c954133dc (diff) |
Load Reporting back to using metadata
Diffstat (limited to 'include/grpc/load_reporting.h')
-rw-r--r-- | include/grpc/load_reporting.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/grpc/load_reporting.h b/include/grpc/load_reporting.h index c833ce5c63..a334a11350 100644 --- a/include/grpc/load_reporting.h +++ b/include/grpc/load_reporting.h @@ -35,7 +35,6 @@ #define GRPC_LOAD_REPORTING_H #include <grpc/impl/codegen/port_platform.h> -#include <grpc/slice.h> #ifdef __cplusplus extern "C" { @@ -50,11 +49,12 @@ extern "C" { * gRPC LB system. */ #define GRPC_LB_TOKEN_MD_KEY "lb-token" -/** A sequence of values for load reporting purposes */ -typedef struct grpc_load_reporting_cost_context { - grpc_slice *values; - size_t values_count; -} grpc_load_reporting_cost_context; +/** 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. */ +#define GRPC_LB_COST_MD_KEY "lb-cost-bin" #ifdef __cplusplus } |