aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/census/grpc_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/census/grpc_context.c')
-rw-r--r--src/core/census/grpc_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/census/grpc_context.c b/src/core/census/grpc_context.c
index 0ed63469b6..d4243cb246 100644
--- a/src/core/census/grpc_context.c
+++ b/src/core/census/grpc_context.c
@@ -39,7 +39,7 @@ static void grpc_census_context_destroy(void *context) {
}
void grpc_census_call_set_context(grpc_call *call, census_context *context) {
- if (!census_available()) {
+ if (census_enabled() == CENSUS_FEATURE_NONE) {
return;
}
if (context == NULL) {