1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GRPC Core: include/grpc/census.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">GRPC Core
 <span id="projectnumber">0.11.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9d7a14d6d9adcbe4c35dbdb88d867e2e.html">grpc</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">census.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="grpc_8h_source.html">grpc/grpc.h</a>></code><br/>
</div>
<p><a href="census_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__timestamp.html">census_timestamp</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This structure represents a timestamp as used by census to record the time at which an operation begins. <a href="structcensus__timestamp.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__rpc__name__info.html">census_rpc_name_info</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Represent functions to map RPC name ID to service/method names. <a href="structcensus__rpc__name__info.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__trace__record.html">census_trace_record</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Trace record. <a href="structcensus__trace__record.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__tag__const.html">census_tag_const</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__value.html">census_value</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__aggregation.html">census_aggregation</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Information needed to instantiate a new aggregation. <a href="structcensus__aggregation.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__view__aggregation__data.html">census_view_aggregation_data</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Holds all the aggregation data for a particular view instantiation. <a href="structcensus__view__aggregation__data.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcensus__view__data.html">census_view_data</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Census view data as returned by <a class="el" href="census_8h.html#ab7146edc8582fe2e6dc537f006e29cc5" title="Get data from aggregations associated with a view. ">census_view_get_data()</a>. <a href="structcensus__view__data.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:acb35403ed23ba2615457fabaa0b430e7"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#acb35403ed23ba2615457fabaa0b430e7">CENSUS_TRACE_RECORD_START_OP</a>   ((<a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a>)0)</td></tr>
<tr class="separator:acb35403ed23ba2615457fabaa0b430e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a003fb5bda98c95408a21d3a47571a1e9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a003fb5bda98c95408a21d3a47571a1e9">CENSUS_TRACE_RECORD_END_OP</a>   ((<a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a>)1)</td></tr>
<tr class="separator:a003fb5bda98c95408a21d3a47571a1e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa89c96f0f32d85a1b28b68f0ef326dd4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#aa89c96f0f32d85a1b28b68f0ef326dd4">CENSUS_MAX_TAG_KEY_LENGTH</a>   20</td></tr>
<tr class="separator:aa89c96f0f32d85a1b28b68f0ef326dd4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a22d6971ca41fd944e13e5b4c2a42bf8c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a22d6971ca41fd944e13e5b4c2a42bf8c">CENSUS_MAX_TAG_VALUE_LENGTH</a>   50</td></tr>
<tr class="separator:a22d6971ca41fd944e13e5b4c2a42bf8c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a27fc8788690179599713226f1f054736"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcensus__context.html">census_context</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a27fc8788690179599713226f1f054736">census_context</a></td></tr>
<tr class="memdesc:a27fc8788690179599713226f1f054736"><td class="mdescLeft"> </td><td class="mdescRight">Context is a handle used by census to represent the current tracing and tagging information. <a href="#a27fc8788690179599713226f1f054736">More...</a><br/></td></tr>
<tr class="separator:a27fc8788690179599713226f1f054736"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afc68a73849e0d1565e74c28c822bb086"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a></td></tr>
<tr class="separator:afc68a73849e0d1565e74c28c822bb086"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a22a740b7e9e3798cb9208b3bd6ea31a7"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/>
<a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a></td></tr>
<tr class="separator:a22a740b7e9e3798cb9208b3bd6ea31a7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2b2990a51808c9177b14476195a9fb94"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/>
<a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a2b2990a51808c9177b14476195a9fb94">census_aggregation_ops</a></td></tr>
<tr class="memdesc:a2b2990a51808c9177b14476195a9fb94"><td class="mdescLeft"> </td><td class="mdescRight">Type representing a particular aggregation. <a href="#a2b2990a51808c9177b14476195a9fb94">More...</a><br/></td></tr>
<tr class="separator:a2b2990a51808c9177b14476195a9fb94"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae43cfb236f1c79eeefb4d9bdf91e3aed"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a></td></tr>
<tr class="memdesc:ae43cfb236f1c79eeefb4d9bdf91e3aed"><td class="mdescLeft"> </td><td class="mdescRight">A census view type. <a href="#ae43cfb236f1c79eeefb4d9bdf91e3aed">More...</a><br/></td></tr>
<tr class="separator:ae43cfb236f1c79eeefb4d9bdf91e3aed"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:abe92e59c22481b0de3742673cbbb1bf8"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8">census_features</a> { <br/>
  <a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8aac1986834f37851b8d899c4a08c8e3ab">CENSUS_FEATURE_NONE</a> = 0,
<a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8ab0722326e730113d5be97f643c3e6718">CENSUS_FEATURE_TRACING</a> = 1,
<a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8a84c772b868e53ee3487c7bfc8e8b2f1a">CENSUS_FEATURE_STATS</a> = 2,
<a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8a4808bff624e2377596b86a6f58ab04b5">CENSUS_FEATURE_CPU</a> = 4,
<br/>
  <a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8aba96a94fb7af8cf1144ca14edc0b1f0c">CENSUS_FEATURE_ALL</a>
<br/>
}</td></tr>
<tr class="separator:abe92e59c22481b0de3742673cbbb1bf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad4ff7b1db813ee5318871121bb4281cc"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ad4ff7b1db813ee5318871121bb4281cc">census_trace_mask_values</a> { <a class="el" href="census_8h.html#ad4ff7b1db813ee5318871121bb4281cca21afa23a531e5d54e70d44ec3c18cfb3">CENSUS_TRACE_MASK_NONE</a> = 0,
<a class="el" href="census_8h.html#ad4ff7b1db813ee5318871121bb4281ccaadcf28b76de06181051506c96996255a">CENSUS_TRACE_MASK_IS_SAMPLED</a> = 1
}</td></tr>
<tr class="separator:ad4ff7b1db813ee5318871121bb4281cc"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4cea92157f3de215724f6bf4aeaee1b6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a4cea92157f3de215724f6bf4aeaee1b6">census_initialize</a> (int features)</td></tr>
<tr class="memdesc:a4cea92157f3de215724f6bf4aeaee1b6"><td class="mdescLeft"> </td><td class="mdescRight">Shutdown and startup census subsystem. <a href="#a4cea92157f3de215724f6bf4aeaee1b6">More...</a><br/></td></tr>
<tr class="separator:a4cea92157f3de215724f6bf4aeaee1b6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa792b067548ecdd987d560b492c83d85"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#aa792b067548ecdd987d560b492c83d85">census_shutdown</a> (void)</td></tr>
<tr class="separator:aa792b067548ecdd987d560b492c83d85"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad5f627a64ac4febbc61d2b89801d40e9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ad5f627a64ac4febbc61d2b89801d40e9">census_supported</a> (void)</td></tr>
<tr class="memdesc:ad5f627a64ac4febbc61d2b89801d40e9"><td class="mdescLeft"> </td><td class="mdescRight">Return the features supported by the current census implementation (not all features will be available on all platforms). <a href="#ad5f627a64ac4febbc61d2b89801d40e9">More...</a><br/></td></tr>
<tr class="separator:ad5f627a64ac4febbc61d2b89801d40e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a742616973e78aaf969389cea20feea9f"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a742616973e78aaf969389cea20feea9f">census_enabled</a> (void)</td></tr>
<tr class="memdesc:a742616973e78aaf969389cea20feea9f"><td class="mdescLeft"> </td><td class="mdescRight">Return the census features currently enabled. <a href="#a742616973e78aaf969389cea20feea9f">More...</a><br/></td></tr>
<tr class="separator:a742616973e78aaf969389cea20feea9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9a7d3170ecf720e1b22a4f255605748"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ad9a7d3170ecf720e1b22a4f255605748">census_context_serialize</a> (const <a class="el" href="structcensus__context.html">census_context</a> *context, char *buffer, size_t buf_size)</td></tr>
<tr class="separator:ad9a7d3170ecf720e1b22a4f255605748"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afeb62854542a09290181209ea72b9158"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#afeb62854542a09290181209ea72b9158">census_trace_mask</a> (const <a class="el" href="structcensus__context.html">census_context</a> *context)</td></tr>
<tr class="memdesc:afeb62854542a09290181209ea72b9158"><td class="mdescLeft"> </td><td class="mdescRight">Get the current trace mask associated with this context. <a href="#afeb62854542a09290181209ea72b9158">More...</a><br/></td></tr>
<tr class="separator:afeb62854542a09290181209ea72b9158"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2762b05c4e9bb8a6994519725cb69a84"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a2762b05c4e9bb8a6994519725cb69a84">census_set_trace_mask</a> (int trace_mask)</td></tr>
<tr class="memdesc:a2762b05c4e9bb8a6994519725cb69a84"><td class="mdescLeft"> </td><td class="mdescRight">Set the trace mask associated with a context. <a href="#a2762b05c4e9bb8a6994519725cb69a84">More...</a><br/></td></tr>
<tr class="separator:a2762b05c4e9bb8a6994519725cb69a84"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a71b2afd7a1663c2a716af7242895442b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__timestamp.html">census_timestamp</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a71b2afd7a1663c2a716af7242895442b">census_start_rpc_op_timestamp</a> (void)</td></tr>
<tr class="memdesc:a71b2afd7a1663c2a716af7242895442b"><td class="mdescLeft"> </td><td class="mdescRight">Mark the beginning of an RPC operation. <a href="#a71b2afd7a1663c2a716af7242895442b">More...</a><br/></td></tr>
<tr class="separator:a71b2afd7a1663c2a716af7242895442b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0f2a69b151eac68f3c50806d2162d9f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__context.html">census_context</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a0f2a69b151eac68f3c50806d2162d9f4">census_start_client_rpc_op</a> (const <a class="el" href="structcensus__context.html">census_context</a> *context, <a class="el" href="port__platform_8h.html#a71edab4bc3421f129764e5cb342f7181">gpr_int64</a> rpc_name_id, const <a class="el" href="structcensus__rpc__name__info.html">census_rpc_name_info</a> *rpc_name_info, const char *peer, int trace_mask, const <a class="el" href="structcensus__timestamp.html">census_timestamp</a> *start_time)</td></tr>
<tr class="memdesc:a0f2a69b151eac68f3c50806d2162d9f4"><td class="mdescLeft"> </td><td class="mdescRight">Start a client rpc operation. <a href="#a0f2a69b151eac68f3c50806d2162d9f4">More...</a><br/></td></tr>
<tr class="separator:a0f2a69b151eac68f3c50806d2162d9f4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a06407a753c261626b4e25c4f6fe0b840"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a06407a753c261626b4e25c4f6fe0b840">census_set_rpc_client_peer</a> (<a class="el" href="structcensus__context.html">census_context</a> *context, const char *peer)</td></tr>
<tr class="memdesc:a06407a753c261626b4e25c4f6fe0b840"><td class="mdescLeft"> </td><td class="mdescRight">Add peer information to a context representing a client RPC operation. <a href="#a06407a753c261626b4e25c4f6fe0b840">More...</a><br/></td></tr>
<tr class="separator:a06407a753c261626b4e25c4f6fe0b840"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab7014fb10de411a91588f05658148177"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__context.html">census_context</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ab7014fb10de411a91588f05658148177">census_start_server_rpc_op</a> (const char *buffer, <a class="el" href="port__platform_8h.html#a71edab4bc3421f129764e5cb342f7181">gpr_int64</a> rpc_name_id, const <a class="el" href="structcensus__rpc__name__info.html">census_rpc_name_info</a> *rpc_name_info, const char *peer, int trace_mask, <a class="el" href="structcensus__timestamp.html">census_timestamp</a> *start_time)</td></tr>
<tr class="memdesc:ab7014fb10de411a91588f05658148177"><td class="mdescLeft"> </td><td class="mdescRight">Start a server RPC operation. <a href="#ab7014fb10de411a91588f05658148177">More...</a><br/></td></tr>
<tr class="separator:ab7014fb10de411a91588f05658148177"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14287fdb8adc322c1801435eb121e642"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__context.html">census_context</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a14287fdb8adc322c1801435eb121e642">census_start_op</a> (<a class="el" href="structcensus__context.html">census_context</a> *context, const char *family, const char *name, int trace_mask)</td></tr>
<tr class="memdesc:a14287fdb8adc322c1801435eb121e642"><td class="mdescLeft"> </td><td class="mdescRight">Start a new, non-RPC operation. <a href="#a14287fdb8adc322c1801435eb121e642">More...</a><br/></td></tr>
<tr class="separator:a14287fdb8adc322c1801435eb121e642"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a97a3300020cdacd7149e0efae9f5541e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a97a3300020cdacd7149e0efae9f5541e">census_end_op</a> (<a class="el" href="structcensus__context.html">census_context</a> *context, int status)</td></tr>
<tr class="memdesc:a97a3300020cdacd7149e0efae9f5541e"><td class="mdescLeft"> </td><td class="mdescRight">End an operation started by any of the census_start_*_op*() calls. <a href="#a97a3300020cdacd7149e0efae9f5541e">More...</a><br/></td></tr>
<tr class="separator:a97a3300020cdacd7149e0efae9f5541e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af3822f36fcbca23a3af9d3e8b3fb3317"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#af3822f36fcbca23a3af9d3e8b3fb3317">census_trace_print</a> (<a class="el" href="structcensus__context.html">census_context</a> *context, <a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a> type, const char *buffer, size_t n)</td></tr>
<tr class="memdesc:af3822f36fcbca23a3af9d3e8b3fb3317"><td class="mdescLeft"> </td><td class="mdescRight">Insert a trace record into the trace stream. <a href="#af3822f36fcbca23a3af9d3e8b3fb3317">More...</a><br/></td></tr>
<tr class="separator:af3822f36fcbca23a3af9d3e8b3fb3317"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab93305c7e6b04cd51f95aa497227f53a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ab93305c7e6b04cd51f95aa497227f53a">census_trace_scan_start</a> (int consume)</td></tr>
<tr class="memdesc:ab93305c7e6b04cd51f95aa497227f53a"><td class="mdescLeft"> </td><td class="mdescRight">Start a scan of existing trace records. <a href="#ab93305c7e6b04cd51f95aa497227f53a">More...</a><br/></td></tr>
<tr class="separator:ab93305c7e6b04cd51f95aa497227f53a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a31151a1bca352d6046e6039fa864808c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a31151a1bca352d6046e6039fa864808c">census_get_trace_record</a> (<a class="el" href="structcensus__trace__record.html">census_trace_record</a> *trace_record)</td></tr>
<tr class="memdesc:a31151a1bca352d6046e6039fa864808c"><td class="mdescLeft"> </td><td class="mdescRight">Get a trace record. <a href="#a31151a1bca352d6046e6039fa864808c">More...</a><br/></td></tr>
<tr class="separator:a31151a1bca352d6046e6039fa864808c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adee01ffd0c56ca2c8c90919a73c3f8ba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#adee01ffd0c56ca2c8c90919a73c3f8ba">census_trace_scan_end</a> ()</td></tr>
<tr class="memdesc:adee01ffd0c56ca2c8c90919a73c3f8ba"><td class="mdescLeft"> </td><td class="mdescRight">End a scan previously started by <a class="el" href="census_8h.html#ab93305c7e6b04cd51f95aa497227f53a" title="Start a scan of existing trace records. ">census_trace_scan_start()</a> <a href="#adee01ffd0c56ca2c8c90919a73c3f8ba">More...</a><br/></td></tr>
<tr class="separator:adee01ffd0c56ca2c8c90919a73c3f8ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14f21902360aa221e6307cec05a110a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a14f21902360aa221e6307cec05a110a5">census_tag_set_create</a> (size_t size_hint)</td></tr>
<tr class="separator:a14f21902360aa221e6307cec05a110a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac690af8a7c06c6fb152fc9b0b8efc142"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ac690af8a7c06c6fb152fc9b0b8efc142">census_tag_set_add</a> (<a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> *tags, const char *<a class="el" href="hpack__table_8c.html#acd3d88da3c0e0313c3645ff34f62f542">key</a>, const char *<a class="el" href="hpack__table_8c.html#a8556878012feffc9e0beb86cd78f424d">value</a>)</td></tr>
<tr class="separator:ac690af8a7c06c6fb152fc9b0b8efc142"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07ccf6250c7e2d4ef7180c510fd68ab2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a07ccf6250c7e2d4ef7180c510fd68ab2">census_tag_set_destroy</a> (<a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> *tags)</td></tr>
<tr class="separator:a07ccf6250c7e2d4ef7180c510fd68ab2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a78ec7fa52ea54e631bb11d59a8adba33"><td class="memItemLeft" align="right" valign="top"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a78ec7fa52ea54e631bb11d59a8adba33">census_context_tag_set</a> (<a class="el" href="structcensus__context.html">census_context</a> *context)</td></tr>
<tr class="separator:a78ec7fa52ea54e631bb11d59a8adba33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae5c38cb581600a401d1f8dca741bf63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#aae5c38cb581600a401d1f8dca741bf63">census_tag_set_open</a> (<a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> *tags)</td></tr>
<tr class="separator:aae5c38cb581600a401d1f8dca741bf63"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a03847b518034c5c3b801fdd95569f400"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a03847b518034c5c3b801fdd95569f400">census_tag_set_next</a> (<a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> *it, <a class="el" href="structcensus__tag__const.html">census_tag_const</a> *tag)</td></tr>
<tr class="separator:a03847b518034c5c3b801fdd95569f400"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acbca4449a68fd3e2c17f1e0bcf1e663a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#acbca4449a68fd3e2c17f1e0bcf1e663a">census_tag_set_close</a> (<a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> *it)</td></tr>
<tr class="separator:acbca4449a68fd3e2c17f1e0bcf1e663a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1225e8bbc14ff51173b6485940940572"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a1225e8bbc14ff51173b6485940940572">census_record_values</a> (<a class="el" href="structcensus__context.html">census_context</a> *context, <a class="el" href="structcensus__value.html">census_value</a> *values, size_t nvalues)</td></tr>
<tr class="separator:a1225e8bbc14ff51173b6485940940572"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3bf772ddda26227f485b375192af85f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a3bf772ddda26227f485b375192af85f2">census_view_create</a> (<a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a> metric_id, const <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> *tags, const <a class="el" href="structcensus__aggregation.html">census_aggregation</a> *aggregations, size_t naggregations)</td></tr>
<tr class="memdesc:a3bf772ddda26227f485b375192af85f2"><td class="mdescLeft"> </td><td class="mdescRight">Create a new view. <a href="#a3bf772ddda26227f485b375192af85f2">More...</a><br/></td></tr>
<tr class="separator:a3bf772ddda26227f485b375192af85f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a529bb89984b69da3b4cab9deb68175a9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a529bb89984b69da3b4cab9deb68175a9">census_view_delete</a> (<a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:a529bb89984b69da3b4cab9deb68175a9"><td class="mdescLeft"> </td><td class="mdescRight">Destroy a previously created view. <a href="#a529bb89984b69da3b4cab9deb68175a9">More...</a><br/></td></tr>
<tr class="separator:a529bb89984b69da3b4cab9deb68175a9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa5741f85edf5b3e72f89797ae85463b0"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#aa5741f85edf5b3e72f89797ae85463b0">census_view_metric</a> (const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:aa5741f85edf5b3e72f89797ae85463b0"><td class="mdescLeft"> </td><td class="mdescRight">Metric ID associated with a view. <a href="#aa5741f85edf5b3e72f89797ae85463b0">More...</a><br/></td></tr>
<tr class="separator:aa5741f85edf5b3e72f89797ae85463b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac993f47fe73f67e5f8c8f4b00c358144"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ac993f47fe73f67e5f8c8f4b00c358144">census_view_naggregations</a> (const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:ac993f47fe73f67e5f8c8f4b00c358144"><td class="mdescLeft"> </td><td class="mdescRight">Number of aggregations associated with view. <a href="#ac993f47fe73f67e5f8c8f4b00c358144">More...</a><br/></td></tr>
<tr class="separator:ac993f47fe73f67e5f8c8f4b00c358144"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a054543816f063d003a36316fda4547b8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a054543816f063d003a36316fda4547b8">census_view_tags</a> (const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:a054543816f063d003a36316fda4547b8"><td class="mdescLeft"> </td><td class="mdescRight">Get tags associated with view. <a href="#a054543816f063d003a36316fda4547b8">More...</a><br/></td></tr>
<tr class="separator:a054543816f063d003a36316fda4547b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab40a6a544d107b067eb5ca8326efeded"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structcensus__aggregation.html">census_aggregation</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ab40a6a544d107b067eb5ca8326efeded">census_view_aggregrations</a> (const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:ab40a6a544d107b067eb5ca8326efeded"><td class="mdescLeft"> </td><td class="mdescRight">Get aggregation descriptors associated with a view. <a href="#ab40a6a544d107b067eb5ca8326efeded">More...</a><br/></td></tr>
<tr class="separator:ab40a6a544d107b067eb5ca8326efeded"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab7146edc8582fe2e6dc537f006e29cc5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structcensus__view__data.html">census_view_data</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ab7146edc8582fe2e6dc537f006e29cc5">census_view_get_data</a> (const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:ab7146edc8582fe2e6dc537f006e29cc5"><td class="mdescLeft"> </td><td class="mdescRight">Get data from aggregations associated with a view. <a href="#ab7146edc8582fe2e6dc537f006e29cc5">More...</a><br/></td></tr>
<tr class="separator:ab7146edc8582fe2e6dc537f006e29cc5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad150387e14628665613f1d9a3d27a418"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#ad150387e14628665613f1d9a3d27a418">census_view_reset</a> (<a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> *view)</td></tr>
<tr class="memdesc:ad150387e14628665613f1d9a3d27a418"><td class="mdescLeft"> </td><td class="mdescRight">Reset all view data to zero for the specified view. <a href="#ad150387e14628665613f1d9a3d27a418">More...</a><br/></td></tr>
<tr class="separator:ad150387e14628665613f1d9a3d27a418"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a35d6ca1b9557bb6e12d79e137a5df944"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a35d6ca1b9557bb6e12d79e137a5df944">census_agg_sum</a></td></tr>
<tr class="separator:a35d6ca1b9557bb6e12d79e137a5df944"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a37ac21fb6ba91fc1f80523cf3d55dbfa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a37ac21fb6ba91fc1f80523cf3d55dbfa">census_agg_distribution</a></td></tr>
<tr class="separator:a37ac21fb6ba91fc1f80523cf3d55dbfa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a22bfed34d03c9f9f061f7aaf5fc5378c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a22bfed34d03c9f9f061f7aaf5fc5378c">census_agg_histogram</a></td></tr>
<tr class="separator:a22bfed34d03c9f9f061f7aaf5fc5378c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b8a7f096dcd85c93f823cddb2bf960e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="census_8h.html#a4b8a7f096dcd85c93f823cddb2bf960e">census_agg_window</a></td></tr>
<tr class="separator:a4b8a7f096dcd85c93f823cddb2bf960e"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="aa89c96f0f32d85a1b28b68f0ef326dd4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CENSUS_MAX_TAG_KEY_LENGTH   20</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a22d6971ca41fd944e13e5b4c2a42bf8c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CENSUS_MAX_TAG_VALUE_LENGTH   50</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a003fb5bda98c95408a21d3a47571a1e9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CENSUS_TRACE_RECORD_END_OP   ((<a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a>)1)</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="acb35403ed23ba2615457fabaa0b430e7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CENSUS_TRACE_RECORD_START_OP   ((<a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a>)0)</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a2b2990a51808c9177b14476195a9fb94"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> <a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Type representing a particular aggregation. </p>
</div>
</div>
<a class="anchor" id="a27fc8788690179599713226f1f054736"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="structcensus__context.html">census_context</a> <a class="el" href="structcensus__context.html">census_context</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Context is a handle used by census to represent the current tracing and tagging information. </p>
<p>Contexts should be propagated across RPC's. Contexts are created by any of the census_start_*_op() functions. A context is typically used as argument to most census functions. Conceptually, contexts should be thought of as specific to single RPC/thread. The context can be serialized for passing across the wire, via <a class="el" href="census_8h.html#ad9a7d3170ecf720e1b22a4f255605748">census_context_serialize()</a>. </p>
</div>
</div>
<a class="anchor" id="afc68a73849e0d1565e74c28c822bb086"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a22a740b7e9e3798cb9208b3bd6ea31a7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> <a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ae43cfb236f1c79eeefb4d9bdf91e3aed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>A census view type. </p>
<p>Opaque. </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="census_8h.html#abe92e59c22481b0de3742673cbbb1bf8">census_features</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8aac1986834f37851b8d899c4a08c8e3ab"></a>CENSUS_FEATURE_NONE</em> </td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8ab0722326e730113d5be97f643c3e6718"></a>CENSUS_FEATURE_TRACING</em> </td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8a84c772b868e53ee3487c7bfc8e8b2f1a"></a>CENSUS_FEATURE_STATS</em> </td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8a4808bff624e2377596b86a6f58ab04b5"></a>CENSUS_FEATURE_CPU</em> </td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="abe92e59c22481b0de3742673cbbb1bf8aba96a94fb7af8cf1144ca14edc0b1f0c"></a>CENSUS_FEATURE_ALL</em> </td><td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<a class="anchor" id="ad4ff7b1db813ee5318871121bb4281cc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="census_8h.html#ad4ff7b1db813ee5318871121bb4281cc">census_trace_mask_values</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ad4ff7b1db813ee5318871121bb4281cca21afa23a531e5d54e70d44ec3c18cfb3"></a>CENSUS_TRACE_MASK_NONE</em> </td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ad4ff7b1db813ee5318871121bb4281ccaadcf28b76de06181051506c96996255a"></a>CENSUS_TRACE_MASK_IS_SAMPLED</em> </td><td class="fielddoc">
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ad9a7d3170ecf720e1b22a4f255605748"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t census_context_serialize </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>buf_size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a78ec7fa52ea54e631bb11d59a8adba33"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a>* census_context_tag_set </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a742616973e78aaf969389cea20feea9f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_enabled </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the census features currently enabled. </p>
</div>
</div>
<a class="anchor" id="a97a3300020cdacd7149e0efae9f5541e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_end_op </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>status</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>End an operation started by any of the census_start_*_op*() calls. </p>
<p>The context used in this call will no longer be valid once this function completes.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Context associated with operation which is ending. </td></tr>
<tr><td class="paramname">status</td><td>status associated with the operation. Not interpreted by census. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a31151a1bca352d6046e6039fa864808c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_get_trace_record </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__trace__record.html">census_trace_record</a> * </td>
<td class="paramname"><em>trace_record</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a trace record. </p>
<p>The data pointed to by the trace buffer is guaranteed stable until the next <a class="el" href="census_8h.html#a31151a1bca352d6046e6039fa864808c" title="Get a trace record. ">census_get_trace_record()</a> call (if the consume argument to census_trace_scan_start was non-zero) or <a class="el" href="census_8h.html#adee01ffd0c56ca2c8c90919a73c3f8ba" title="End a scan previously started by census_trace_scan_start() ">census_trace_scan_end()</a> is called (otherwise). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">trace_record</td><td>structure that will be filled in with oldest trace record. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>-1 if an error occurred (e.g. no previous call to <a class="el" href="census_8h.html#ab93305c7e6b04cd51f95aa497227f53a" title="Start a scan of existing trace records. ">census_trace_scan_start()</a>), 0 if there is no more trace data (and trace_record will not be modified) or 1 otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="a4cea92157f3de215724f6bf4aeaee1b6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_initialize </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>features</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Shutdown and startup census subsystem. </p>
<p>The 'features' argument should be the OR (|) of census_features values. If census fails to initialize, then <a class="el" href="census_8h.html#a4cea92157f3de215724f6bf4aeaee1b6" title="Shutdown and startup census subsystem. ">census_initialize()</a> will return a non-zero value. It is an error to call <a class="el" href="census_8h.html#a4cea92157f3de215724f6bf4aeaee1b6" title="Shutdown and startup census subsystem. ">census_initialize()</a> more than once (without an intervening <a class="el" href="census_8h.html#aa792b067548ecdd987d560b492c83d85">census_shutdown()</a>). </p>
</div>
</div>
<a class="anchor" id="a1225e8bbc14ff51173b6485940940572"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_record_values </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcensus__value.html">census_value</a> * </td>
<td class="paramname"><em>values</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>nvalues</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a06407a753c261626b4e25c4f6fe0b840"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_set_rpc_client_peer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>peer</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add peer information to a context representing a client RPC operation. </p>
</div>
</div>
<a class="anchor" id="a2762b05c4e9bb8a6994519725cb69a84"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_set_trace_mask </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>trace_mask</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the trace mask associated with a context. </p>
</div>
</div>
<a class="anchor" id="aa792b067548ecdd987d560b492c83d85"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_shutdown </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a0f2a69b151eac68f3c50806d2162d9f4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__context.html">census_context</a>* census_start_client_rpc_op </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="port__platform_8h.html#a71edab4bc3421f129764e5cb342f7181">gpr_int64</a> </td>
<td class="paramname"><em>rpc_name_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structcensus__rpc__name__info.html">census_rpc_name_info</a> * </td>
<td class="paramname"><em>rpc_name_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>peer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>trace_mask</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structcensus__timestamp.html">census_timestamp</a> * </td>
<td class="paramname"><em>start_time</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a client rpc operation. </p>
<p>This function should be called as early in the client RPC path as possible. This function will create a new context. If the context argument is non-null, then the new context will inherit all its properties, with the following changes:</p>
<ul>
<li>create a new operation ID for the new context, marking it as a child of the previous operation.</li>
<li>use the new RPC path and peer information for tracing and stats collection purposes, rather than those from the original context</li>
</ul>
<p>If the context argument is NULL, then a new root context is created. This is particularly important for tracing purposes (the trace spans generated will be unassociated with any other trace spans, except those downstream). The trace_mask will be used for tracing operations associated with the new context.</p>
<p>In some RPC systems (e.g. where load balancing is used), peer information may not be available at the time the operation starts. In this case, use a NULL value for peer, and set it later using the <a class="el" href="census_8h.html#a06407a753c261626b4e25c4f6fe0b840" title="Add peer information to a context representing a client RPC operation. ">census_set_rpc_client_peer()</a> function.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>The parent context. Can be NULL. </td></tr>
<tr><td class="paramname">rpc_name_id</td><td>The rpc name identifier to be associated with this RPC. </td></tr>
<tr><td class="paramname">rpc_name_info</td><td>Used to decode rpc_name_id. </td></tr>
<tr><td class="paramname">peer</td><td>RPC peer. If not available at the time, NULL can be used, and a later <a class="el" href="census_8h.html#a06407a753c261626b4e25c4f6fe0b840" title="Add peer information to a context representing a client RPC operation. ">census_set_rpc_client_peer()</a> call made. </td></tr>
<tr><td class="paramname">trace_mask</td><td>An OR of census_trace_mask_values values. Only used in the creation of a new root context (context == NULL). </td></tr>
<tr><td class="paramname">start_time</td><td>A timestamp returned from <a class="el" href="census_8h.html#a71b2afd7a1663c2a716af7242895442b" title="Mark the beginning of an RPC operation. ">census_start_rpc_op_timestamp()</a>. Can be NULL. Used to set the true time the operation begins.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new census context. </dd></dl>
</div>
</div>
<a class="anchor" id="a14287fdb8adc322c1801435eb121e642"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__context.html">census_context</a>* census_start_op </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>family</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>trace_mask</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a new, non-RPC operation. </p>
<p>In general, this function works very similarly to census_start_client_rpc_op, with the primary difference being the replacement of host/path information with the more generic family/name tags. If the context argument is non-null, then the new context will inherit all its properties, with the following changes:</p>
<ul>
<li>create a new operation ID for the new context, marking it as a child of the previous operation.</li>
<li>use the family and name information for tracing and stats collection purposes, rather than those from the original context</li>
</ul>
<p>If the context argument is NULL, then a new root context is created. This is particularly important for tracing purposes (the trace spans generated will be unassociated with any other trace spans, except those downstream). The trace_mask will be used for tracing operations associated with the new context.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>The base context. Can be NULL. </td></tr>
<tr><td class="paramname">family</td><td>Family name to associate with the trace </td></tr>
<tr><td class="paramname">name</td><td>Name within family to associated with traces/stats </td></tr>
<tr><td class="paramname">trace_mask</td><td>An OR of census_trace_mask_values values. Only used if context is NULL.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new census context. </dd></dl>
</div>
</div>
<a class="anchor" id="a71b2afd7a1663c2a716af7242895442b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__timestamp.html">census_timestamp</a> census_start_rpc_op_timestamp </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Mark the beginning of an RPC operation. </p>
<p>The information required to call the functions to record the start of RPC operations (both client and server) may not be callable at the true start time of the operation, due to information not being available (e.g. the census context data will not be available in a server RPC until at least initial metadata has been processed). To ensure correct CPU accounting and latency recording, RPC systems can call this function to get the timestamp of operation beginning. This can later be used as an argument to census_start_{client,server}_rpc_op(). NB: for correct CPU accounting, the system must guarantee that the same thread is used for all request processing after this function is called.</p>
<dl class="section return"><dt>Returns</dt><dd>A timestamp representing the operation start time. </dd></dl>
</div>
</div>
<a class="anchor" id="ab7014fb10de411a91588f05658148177"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__context.html">census_context</a>* census_start_server_rpc_op </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="port__platform_8h.html#a71edab4bc3421f129764e5cb342f7181">gpr_int64</a> </td>
<td class="paramname"><em>rpc_name_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structcensus__rpc__name__info.html">census_rpc_name_info</a> * </td>
<td class="paramname"><em>rpc_name_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>peer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>trace_mask</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcensus__timestamp.html">census_timestamp</a> * </td>
<td class="paramname"><em>start_time</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a server RPC operation. </p>
<p>Returns a new context to be used in future census calls. If buffer is non-NULL, then the buffer contents should represent the client context, as generated by <a class="el" href="census_8h.html#ad9a7d3170ecf720e1b22a4f255605748">census_context_serialize()</a>. If buffer is NULL, a new root context is created.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">buffer</td><td>Buffer containing bytes output from <a class="el" href="census_8h.html#ad9a7d3170ecf720e1b22a4f255605748">census_context_serialize()</a>. </td></tr>
<tr><td class="paramname">rpc_name_id</td><td>The rpc name identifier to be associated with this RPC. </td></tr>
<tr><td class="paramname">rpc_name_info</td><td>Used to decode rpc_name_id. </td></tr>
<tr><td class="paramname">peer</td><td>RPC peer. </td></tr>
<tr><td class="paramname">trace_mask</td><td>An OR of census_trace_mask_values values. Only used in the creation of a new root context (buffer == NULL). </td></tr>
<tr><td class="paramname">start_time</td><td>A timestamp returned from <a class="el" href="census_8h.html#a71b2afd7a1663c2a716af7242895442b" title="Mark the beginning of an RPC operation. ">census_start_rpc_op_timestamp()</a>. Can be NULL. Used to set the true time the operation begins.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new census context. </dd></dl>
</div>
</div>
<a class="anchor" id="ad5f627a64ac4febbc61d2b89801d40e9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_supported </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the features supported by the current census implementation (not all features will be available on all platforms). </p>
</div>
</div>
<a class="anchor" id="ac690af8a7c06c6fb152fc9b0b8efc142"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_tag_set_add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td>
<td class="paramname"><em>tags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="acbca4449a68fd3e2c17f1e0bcf1e663a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_tag_set_close </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> * </td>
<td class="paramname"><em>it</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a14f21902360aa221e6307cec05a110a5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a>* census_tag_set_create </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size_hint</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a07ccf6250c7e2d4ef7180c510fd68ab2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_tag_set_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td>
<td class="paramname"><em>tags</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a03847b518034c5c3b801fdd95569f400"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_tag_set_next </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a> * </td>
<td class="paramname"><em>it</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcensus__tag__const.html">census_tag_const</a> * </td>
<td class="paramname"><em>tag</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aae5c38cb581600a401d1f8dca741bf63"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="census_8h.html#a22a740b7e9e3798cb9208b3bd6ea31a7">census_tag_set_iterator</a>* census_tag_set_open </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td>
<td class="paramname"><em>tags</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="afeb62854542a09290181209ea72b9158"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_trace_mask </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current trace mask associated with this context. </p>
<p>The value returned will be the logical or of census_trace_mask_values values. </p>
</div>
</div>
<a class="anchor" id="af3822f36fcbca23a3af9d3e8b3fb3317"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_trace_print </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcensus__context.html">census_context</a> * </td>
<td class="paramname"><em>context</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Insert a trace record into the trace stream. </p>
<p>The record consists of an arbitrary size buffer, the size of which is provided in 'n'. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>Trace context </td></tr>
<tr><td class="paramname">type</td><td>User-defined type to associate with trace entry. </td></tr>
<tr><td class="paramname">buffer</td><td>Pointer to buffer to use </td></tr>
<tr><td class="paramname">n</td><td>Number of bytes in buffer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="adee01ffd0c56ca2c8c90919a73c3f8ba"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_trace_scan_end </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>End a scan previously started by <a class="el" href="census_8h.html#ab93305c7e6b04cd51f95aa497227f53a" title="Start a scan of existing trace records. ">census_trace_scan_start()</a> </p>
</div>
</div>
<a class="anchor" id="ab93305c7e6b04cd51f95aa497227f53a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int census_trace_scan_start </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>consume</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a scan of existing trace records. </p>
<p>While a scan is ongoing, addition of new trace records will be blocked if the underlying trace buffers fill up, so trace processing systems should endeavor to complete reading as soon as possible. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">consume</td><td>if non-zero, indicates that reading records also "consumes" the previously read record - i.e. releases space in the trace log while scanning is ongoing. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, non-zero on failure (e.g. if a scan is already ongoing) </dd></dl>
</div>
</div>
<a class="anchor" id="ab40a6a544d107b067eb5ca8326efeded"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="structcensus__aggregation.html">census_aggregation</a>* census_view_aggregrations </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get aggregation descriptors associated with a view. </p>
</div>
</div>
<a class="anchor" id="a3bf772ddda26227f485b375192af85f2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a>* census_view_create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="port__platform_8h.html#aa6abd4df815a5498d1a04b5e691a74a9">gpr_uint32</a> </td>
<td class="paramname"><em>metric_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a> * </td>
<td class="paramname"><em>tags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structcensus__aggregation.html">census_aggregation</a> * </td>
<td class="paramname"><em>aggregations</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>naggregations</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new view. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">metric_id</td><td>Metric with which this view is associated. </td></tr>
<tr><td class="paramname">tags</td><td>tags that define the view </td></tr>
<tr><td class="paramname">aggregations</td><td>aggregations to associate with the view </td></tr>
<tr><td class="paramname">naggregations</td><td>number of aggregations</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new census view </dd></dl>
</div>
</div>
<a class="anchor" id="a529bb89984b69da3b4cab9deb68175a9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_view_delete </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a previously created view. </p>
</div>
</div>
<a class="anchor" id="ab7146edc8582fe2e6dc537f006e29cc5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="structcensus__view__data.html">census_view_data</a>* census_view_get_data </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get data from aggregations associated with a view. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">view</td><td>View from which to get data. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Full set of data for all aggregations for the view. </dd></dl>
</div>
</div>
<a class="anchor" id="aa5741f85edf5b3e72f89797ae85463b0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t census_view_metric </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Metric ID associated with a view. </p>
</div>
</div>
<a class="anchor" id="ac993f47fe73f67e5f8c8f4b00c358144"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t census_view_naggregations </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Number of aggregations associated with view. </p>
</div>
</div>
<a class="anchor" id="ad150387e14628665613f1d9a3d27a418"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void census_view_reset </td>
<td>(</td>
<td class="paramtype"><a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Reset all view data to zero for the specified view. </p>
</div>
</div>
<a class="anchor" id="a054543816f063d003a36316fda4547b8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="census_8h.html#afc68a73849e0d1565e74c28c822bb086">census_tag_set</a>* census_view_tags </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="census_8h.html#ae43cfb236f1c79eeefb4d9bdf91e3aed">census_view</a> * </td>
<td class="paramname"><em>view</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get tags associated with view. </p>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a37ac21fb6ba91fc1f80523cf3d55dbfa"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> census_agg_distribution</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a22bfed34d03c9f9f061f7aaf5fc5378c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> census_agg_histogram</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a35d6ca1b9557bb6e12d79e137a5df944"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> census_agg_sum</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4b8a7f096dcd85c93f823cddb2bf960e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structcensus__aggregation__ops.html">census_aggregation_ops</a> census_agg_window</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Sep 3 2015 09:44:13 for GRPC Core by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
|