Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
ext
filters
census
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
19
#include <
grpc/support/port_platform.h
>
20
21
#include <
grpc/census.h
>
22
#include <
grpc/grpc.h
>
23
#include <
grpc/impl/codegen/grpc_types.h
>
24
25
#include "
src/core/lib/channel/context.h
"
26
#include "
src/core/lib/debug/trace.h
"
27
#include "
src/core/lib/surface/api_trace.h
"
28
#include "
src/core/lib/surface/call.h
"
29
30
void
grpc_census_call_set_context
(
grpc_call
*
call
,
census_context
*
context
) {
31
GRPC_API_TRACE
(
"grpc_census_call_set_context(call=%p, census_context=%p)"
, 2,
32
(
call
,
context
));
33
if
(
context
!=
nullptr
) {
34
grpc_call_context_set
(
call
,
GRPC_CONTEXT_TRACING
,
context
,
nullptr
);
35
}
36
}
37
38
census_context
*
grpc_census_call_get_context
(
grpc_call
*
call
) {
39
GRPC_API_TRACE
(
"grpc_census_call_get_context(call=%p)"
, 1, (
call
));
40
return
static_cast<
census_context
*
>
(
41
grpc_call_context_get
(
call
,
GRPC_CONTEXT_TRACING
));
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