diff options
author | Noah Eisen <ncteisen@gmail.com> | 2018-10-05 12:15:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 12:15:48 -0700 |
commit | f526602bff029b8db50a8d57134d72da33d8a752 (patch) | |
tree | ceb35cb56043af3e7352da096d94de43e461d8a6 /include/grpc | |
parent | 5159d8bacd6159aaf9f052f9bbe253f1d6027b5a (diff) | |
parent | 6f6033c91019709c601f90d84617f07f8374699e (diff) |
Merge pull request #16767 from ncteisen/channel-trace-size
Limit Channel Trace by Memory
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/impl/codegen/grpc_types.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h index d1f8834d11..3ce88a8264 100644 --- a/include/grpc/impl/codegen/grpc_types.h +++ b/include/grpc/impl/codegen/grpc_types.h @@ -285,10 +285,12 @@ typedef struct { #define GRPC_ARG_SOCKET_MUTATOR "grpc.socket_mutator" /** The grpc_socket_factory instance to create and bind sockets. A pointer. */ #define GRPC_ARG_SOCKET_FACTORY "grpc.socket_factory" -/** The maximum number of trace events to keep in the tracer for each channel or - * subchannel. The default is 0. If set to 0, channel tracing is disabled. */ -#define GRPC_ARG_MAX_CHANNEL_TRACE_EVENTS_PER_NODE \ - "grpc.max_channel_trace_events_per_node" +/** The maximum amount of memory used by trace events per channel trace node. + * Once the maximum is reached, subsequent events will evict the oldest events + * from the buffer. The unit for this knob is bytes. Setting it to zero causes + * channel tracing to be disabled. */ +#define GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE \ + "grpc.max_channel_trace_event_memory_per_node" /** If non-zero, gRPC library will track stats and information at at per channel * level. Disabling channelz naturally disables channel tracing. The default * is for channelz to be disabled. */ |