grpc_context.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
20 
21 #include <grpc/census.h>
22 #include <grpc/grpc.h>
24 
29 
31  GRPC_API_TRACE("grpc_census_call_set_context(call=%p, census_context=%p)", 2,
32  (call, context));
33  if (context != nullptr) {
35  }
36 }
37 
39  GRPC_API_TRACE("grpc_census_call_get_context(call=%p)", 1, (call));
40  return static_cast<census_context*>(
42 }
trace.h
census_context
struct census_context census_context
Definition: census.h:34
call
FilterStackCall * call
Definition: call.cc:750
census.h
grpc_types.h
context.h
grpc_census_call_get_context
census_context * grpc_census_call_get_context(grpc_call *call)
Definition: grpc_context.cc:38
grpc.h
grpc_call
struct grpc_call grpc_call
Definition: grpc_types.h:70
GRPC_CONTEXT_TRACING
@ GRPC_CONTEXT_TRACING
Value is a census_context.
Definition: core/lib/channel/context.h:37
grpc_call_context_get
void * grpc_call_context_get(grpc_call *call, grpc_context_index elem)
Definition: call.cc:1859
grpc_call_context_set
void grpc_call_context_set(grpc_call *call, grpc_context_index elem, void *value, void(*destroy)(void *value))
Definition: call.cc:1854
api_trace.h
context
grpc::ClientContext context
Definition: istio_echo_server_lib.cc:61
grpc_census_call_set_context
void grpc_census_call_set_context(grpc_call *call, census_context *context)
Definition: grpc_context.cc:30
call.h
GRPC_API_TRACE
#define GRPC_API_TRACE(fmt, nargs, args)
Definition: api_trace.h:48
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:47