aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc
diff options
context:
space:
mode:
authorGravatar David G. Quintas <dgq@google.com>2017-04-17 10:36:42 -0700
committerGravatar GitHub <noreply@github.com>2017-04-17 10:36:42 -0700
commita6f64f4c001b01a74a685bb1f62ffdb597fefc23 (patch)
tree5a8768dcf7f189624eda928e3205431b2ad9722b /include/grpc
parentc5fc2b7112e29c1cc57b335b3611877a297417b2 (diff)
parenta818f72c0c84f386d8e415e12f215453d35eeb21 (diff)
Merge pull request #10391 from dgquintas/lr_back_to_md
Load Reporting back to using metadata
Diffstat (limited to 'include/grpc')
-rw-r--r--include/grpc/grpc.h6
-rw-r--r--include/grpc/load_reporting.h12
2 files changed, 6 insertions, 12 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 42cf201da4..9a65d34ce3 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -296,12 +296,6 @@ GRPCAPI grpc_call_error grpc_call_start_batch(grpc_call *call,
functionality. Instead, use grpc_auth_context. */
GRPCAPI char *grpc_call_get_peer(grpc_call *call);
-struct grpc_load_reporting_cost_context;
-
-/* Associate costs contained in \a cost_context to \a call. */
-GRPCAPI void grpc_call_set_load_reporting_cost_context(
- grpc_call *call, struct grpc_load_reporting_cost_context *context);
-
struct census_context;
/** Set census context for a call; Must be called before first call to
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
}