GRPC Core  9.0.0
Namespaces | Functions
trace.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/debug/trace.h"
#include <string.h>
#include <type_traits>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>

Namespaces

 grpc_core
 Round Robin Policy.
 

Functions

 GPR_GLOBAL_CONFIG_DEFINE_STRING (grpc_trace, "", "A comma separated list of tracers that provide additional insight into " "how gRPC C core is processing requests via debug logs.")
 
int grpc_tracer_set_enabled (const char *name, int enabled)
 Enable or disable a tracer. More...
 
void grpc_tracer_init (const char *env_var_name)
 
void grpc_tracer_init ()
 
void grpc_tracer_shutdown (void)
 

Function Documentation

◆ GPR_GLOBAL_CONFIG_DEFINE_STRING()

GPR_GLOBAL_CONFIG_DEFINE_STRING ( grpc_trace  ,
""  ,
"A comma separated list of tracers that provide additional insight into " "how gRPC C core is processing requests via debug logs."   
)

◆ grpc_tracer_init() [1/2]

void grpc_tracer_init ( )

◆ grpc_tracer_init() [2/2]

void grpc_tracer_init ( const char *  env_var_name)

◆ grpc_tracer_set_enabled()

int grpc_tracer_set_enabled ( const char *  name,
int  enabled 
)

Enable or disable a tracer.

Tracers (usually controlled by the environment variable GRPC_TRACE) allow printf-style debugging on GRPC internals, and are useful for tracking down problems in the field.

Use of this function is not strictly thread-safe, but the thread-safety issues raised by it should not be of concern.

◆ grpc_tracer_shutdown()

void grpc_tracer_shutdown ( void  )