type serverReporter … func newServerReporter(m *ServerMetrics, rpcType grpcType, fullMethod string) *serverReporter { … } func (r *serverReporter) ReceivedMessage() { … } func (r *serverReporter) SentMessage() { … } func (r *serverReporter) Handled(code codes.Code) { … }