Could you add the "grpc_tracer_init(const char* env_var_name)" to the GRPCAPI list ?

35 views
Skip to first unread message

jinkeom

unread,
Aug 18, 2022, 1:49:50 AM8/18/22
to grpc.io



I want to enable the tracer without restarting while the application is running. When the application receives a message, it will enable/disable the tracer.

However, only the following functions are open to GRPCAPI, and it can only set one TraceFlag.
./include/grpc/grpc.h:485:GRPCAPI int grpc_tracer_set_enabled(const char* name, int enabled);

I want to use the same string set in "export GRPC_TRACE=" while the application is in operation.
Can you open the "grpc_tracker_init(const char* env_var_name)" function which will use the parameter env_var_name, not ENV.
void grpc_tracer_init(const char* env_var_name) {
  (void)env_var_name;  // suppress unused variable error
  grpc_tracer_init();
}
Reply all
Reply to author
Forward
0 new messages