Namespaces | Functions
debug/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>
Include dependency graph for debug/trace.cc:

Go to the source code of this file.

Namespaces

 grpc_core
 

Functions

static void add (const char *beg, const char *end, char ***ss, size_t *ns)
 
 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.")
 
void grpc_tracer_init ()
 
void grpc_tracer_init (const char *env_var_name)
 
int grpc_tracer_set_enabled (const char *name, int enabled)
 
void grpc_tracer_shutdown (void)
 
static void parse (const char *s)
 
static void split (const char *s, char ***ss, size_t *ns)
 

Function Documentation

◆ add()

static void add ( const char *  beg,
const char *  end,
char ***  ss,
size_t *  ns 
)
static

Definition at line 96 of file debug/trace.cc.

◆ 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 ( )

Definition at line 146 of file debug/trace.cc.

◆ grpc_tracer_init() [2/2]

void grpc_tracer_init ( const char *  env_var_name)

Definition at line 141 of file debug/trace.cc.

◆ 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.

Definition at line 153 of file debug/trace.cc.

◆ grpc_tracer_shutdown()

void grpc_tracer_shutdown ( void  )

Definition at line 151 of file debug/trace.cc.

◆ parse()

static void parse ( const char *  s)
static

Definition at line 121 of file debug/trace.cc.

◆ split()

static void split ( const char *  s,
char ***  ss,
size_t *  ns 
)
static

Definition at line 111 of file debug/trace.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:35