This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
opencensus/plugins/grpc/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424namespace opencensus {
2525
26+ namespace {
27+
2628// Maximum size of metadata for tracing and tagging that are sent on the wire.
2729constexpr uint32_t kMaxStatsLen = 2046 ;
2830constexpr uint32_t kMaxTracingLen = 128 ;
29- // Maximum size of server stats that are sent on the wire.
30- constexpr uint32_t kMaxServerStatsLen = 32 ;
3131
3232constexpr double kNumMillisPerNanosecond = 1e-6 ;
3333
34- namespace {
35-
3634void FilterTrailingMetadata (grpc_metadata_batch *b, uint64_t *elapsed_time) {
3735 if (b->idx .named .grpc_server_stats_bin != nullptr ) {
3836 ServerStatsDeserialize (
Original file line number Diff line number Diff line change 2525
2626namespace opencensus {
2727
28- // Maximum size of metadata for tracing and tagging that are sent on the wire.
29- constexpr uint32_t kMaxStatsLen = 2046 ;
30- constexpr uint32_t kMaxTracingLen = 128 ;
28+ namespace {
29+
3130// Maximum size of server stats that are sent on the wire.
3231constexpr uint32_t kMaxServerStatsLen = 32 ;
3332
34- constexpr double kNumMillisPerNanosecond = 1e-6 ;
35-
36- namespace {
37-
3833// server metadata elements
3934struct ServerMetadataElements {
4035 grpc_slice path;
You can’t perform that action at this time.
0 commit comments