aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/census/grpc_context.c
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-08-19 18:22:53 -0700
committerGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-10-02 16:37:33 -0700
commit76c3d7481f56ad1a9ab928c3e423030fa440a729 (patch)
treed73a37967133276e98e3c027a0524c35761909bb /src/core/census/grpc_context.c
parent861fbcbf22b2aae7d8793051ce6ef598fc6e074a (diff)
Add API tracing to gRPC core
Diffstat (limited to 'src/core/census/grpc_context.c')
-rw-r--r--src/core/census/grpc_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/census/grpc_context.c b/src/core/census/grpc_context.c
index 429f3ec9db..4b61382a2c 100644
--- a/src/core/census/grpc_context.c
+++ b/src/core/census/grpc_context.c
@@ -33,9 +33,12 @@
#include <grpc/census.h>
#include <grpc/grpc.h>
+#include "src/core/surface/api_trace.h"
#include "src/core/surface/call.h"
void grpc_census_call_set_context(grpc_call *call, census_context *context) {
+ GRPC_API_TRACE("grpc_census_call_set_context(call=%p, census_context=%p)", 2,
+ (call, context));
if (census_enabled() == CENSUS_FEATURE_NONE) {
return;
}
@@ -45,5 +48,6 @@ void grpc_census_call_set_context(grpc_call *call, census_context *context) {
}
census_context *grpc_census_call_get_context(grpc_call *call) {
+ GRPC_API_TRACE("grpc_census_call_get_context(call=%p)", 1, (call));
return (census_context *)grpc_call_context_get(call, GRPC_CONTEXT_TRACING);
}