diff options
author | ncteisen <ncteisen@gmail.com> | 2018-10-02 17:33:07 -0700 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-10-02 17:33:07 -0700 |
commit | a64cb54de152017d6c3c968ec9c22a98c405a8ba (patch) | |
tree | 9d6d17b00197a519765b104833a8cf2946eabda8 /include/grpc | |
parent | 95dc4f1b8dfe30c7b983147690f483e0894687fd (diff) |
Channel trace is limited by memory
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/impl/codegen/grpc_types.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h index 9ed5b3c1d4..672f130bab 100644 --- a/include/grpc/impl/codegen/grpc_types.h +++ b/include/grpc/impl/codegen/grpc_types.h @@ -285,9 +285,11 @@ 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 10. If set to 0, channel tracing is disabled. */ -#define GRPC_ARG_MAX_CHANNEL_TRACE_EVENTS_PER_NODE \ +/** The maximum ammount of memory that the trace event can use 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_events_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 |