aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/ext
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2018-08-01 11:22:32 -0700
committerGravatar yang-g <yangg@google.com>2018-08-01 11:22:32 -0700
commitd6ef707422c8afba5046f395419a2a524a248472 (patch)
treea9ee7970cfa1dbc6c69c981f35c43089843a52b2 /src/cpp/ext
parentb811b4e73dcdb15f7fd9cef02fe457c42d0f855c (diff)
Add more filter priority levels
Diffstat (limited to 'src/cpp/ext')
-rw-r--r--src/cpp/ext/filters/census/grpc_plugin.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpp/ext/filters/census/grpc_plugin.cc b/src/cpp/ext/filters/census/grpc_plugin.cc
index f978ed3bf5..f79e0e0e96 100644
--- a/src/cpp/ext/filters/census/grpc_plugin.cc
+++ b/src/cpp/ext/filters/census/grpc_plugin.cc
@@ -32,10 +32,12 @@ namespace grpc {
void RegisterOpenCensusPlugin() {
RegisterChannelFilter<CensusChannelData, CensusClientCallData>(
- "opencensus_client", GRPC_CLIENT_CHANNEL, INT_MAX /* priority */,
+ "opencensus_client", GRPC_CLIENT_CHANNEL,
+ GRPC_CHANNEL_INIT_PRIORITY_VERY_HIGH, true /* prepend */,
nullptr /* condition function */);
RegisterChannelFilter<CensusChannelData, CensusServerCallData>(
- "opencensus_server", GRPC_SERVER_CHANNEL, INT_MAX /* priority */,
+ "opencensus_server", GRPC_SERVER_CHANNEL,
+ GRPC_CHANNEL_INIT_PRIORITY_VERY_HIGH, true /* prepend */,
nullptr /* condition function */);
// Access measures to ensure they are initialized. Otherwise, creating a view