type clientReporter … func newClientReporter(m *ClientMetrics, rpcType grpcType, fullMethod string) *clientReporter { … } func (r *clientReporter) ReceivedMessage() { … } func (r *clientReporter) SentMessage() { … } func (r *clientReporter) Handled(code codes.Code) { … }