aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel.cc
diff options
context:
space:
mode:
authorGravatar Alistair Veitch <aveitch@google.com>2015-06-29 02:52:46 -0700
committerGravatar Alistair Veitch <aveitch@google.com>2015-06-29 02:52:46 -0700
commitfc62dddd1ca3642bc6c1bb0cd408f1bac78d52e6 (patch)
treeb432d16841fa5e0aa4f7b0d29169289bd1ea6c83 /src/cpp/client/channel.cc
parent8bcba9a08fd8c47f68046c648adbaf0c38c2afb5 (diff)
add client side census context
Diffstat (limited to 'src/cpp/client/channel.cc')
-rw-r--r--src/cpp/client/channel.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/client/channel.cc b/src/cpp/client/channel.cc
index 72593f877e..5bc6f6fd91 100644
--- a/src/cpp/client/channel.cc
+++ b/src/cpp/client/channel.cc
@@ -39,6 +39,7 @@
#include <grpc/support/log.h>
#include <grpc/support/slice.h>
+#include "src/core/census/grpc_context.h"
#include "src/core/profiling/timers.h"
#include <grpc++/channel_arguments.h>
#include <grpc++/client_context.h>
@@ -68,6 +69,7 @@ Call Channel::CreateCall(const RpcMethod& method, ClientContext* context,
? target_.c_str()
: context->authority().c_str(),
context->raw_deadline());
+ grpc_census_call_set_context(c_call, context->get_census_context());
GRPC_TIMER_MARK(GRPC_PTAG_CPP_CALL_CREATED, c_call);
context->set_call(c_call, shared_from_this());
return Call(c_call, this, cq);