MCPcopy
hub / github.com/grpc/grpc-go / IsOn

Function IsOn

internal/channelz/funcs.go:54–56  ·  view source on GitHub ↗

IsOn returns whether channelz data collection is on.

()

Source from the content-addressed store, hash-verified

52
53// IsOn returns whether channelz data collection is on.
54func IsOn() bool {
55 return atomic.LoadInt32(&curState) == 1
56}
57
58// GetTopChannels returns a slice of top channel's ChannelMetric, along with a
59// boolean indicating whether there's more top channels to be queried for.

Callers 15

processUnaryRPCMethod · 0.92
processStreamingRPCMethod · 0.92
addChannelzTraceEventMethod · 0.92
endOfClientStreamFunction · 0.92
newClientStreamFunction · 0.92
pickMethod · 0.92
operateHeadersMethod · 0.92
keepaliveMethod · 0.92
deleteStreamMethod · 0.92
incrMsgSentMethod · 0.92
incrMsgRecvMethod · 0.92

Calls

no outgoing calls