aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/census
diff options
context:
space:
mode:
authorGravatar Hongyu Chen <hongyu@google.com>2015-12-02 22:24:33 -0800
committerGravatar Hongyu Chen <hongyu@google.com>2015-12-02 22:24:33 -0800
commit1f9604818799b7f6e15710f016ee4e62800d7158 (patch)
treedf49b8979e6c388f13e72870a3a846b7ec50b2dc /src/core/census
parent6f9b17184246ccd29e1a5b0271058c3ccfd63887 (diff)
Census tags propagation.
Diffstat (limited to 'src/core/census')
-rw-r--r--src/core/census/context.c4
-rw-r--r--src/core/census/context.h10
2 files changed, 9 insertions, 5 deletions
diff --git a/src/core/census/context.c b/src/core/census/context.c
index cab58b653c..441e328c63 100644
--- a/src/core/census/context.c
+++ b/src/core/census/context.c
@@ -39,6 +39,10 @@
/* Placeholder implementation only. */
+census_context* census_context_current(void) {
+ return NULL;
+}
+
size_t census_context_serialize(const census_context *context, char *buffer,
size_t buf_size) {
/* TODO(aveitch): implement serialization */
diff --git a/src/core/census/context.h b/src/core/census/context.h
index d9907d4da7..896b4ba6c0 100644
--- a/src/core/census/context.h
+++ b/src/core/census/context.h
@@ -36,14 +36,14 @@
#include <grpc/census.h>
+#define GRPC_CENSUS_MAX_ON_THE_WIRE_TAG_BYTES 8 * 1024
+
/* census_context is the in-memory representation of information needed to
* maintain tracing, RPC statistics and resource usage information. */
struct census_context {
- gpr_uint64 op_id; /* Operation identifier - unique per-context */
- gpr_uint64 trace_id; /* Globally unique trace identifier */
- /* TODO(aveitch) Add census tags:
- const census_tag_set *tags;
- */
+ gpr_uint64 op_id; /* Operation identifier - unique per-context */
+ gpr_uint64 trace_id; /* Globally unique trace identifier */
+ void* tags; /* Opaque data structure for Census tags. */
};
#endif /* GRPC_INTERNAL_CORE_CENSUS_CONTEXT_H */