You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ctrl_peekhandler.go
    path of file: ./repos/ziti/router/metrics
    
    the code of the file until where you have to start completion: package metrics

import (
	"github.com/openziti/channel/v2"
	"github.com/openziti/metrics"
)

// NewCtrlChannelPeekHandler creates a channel PeekHandler which tracks message rate and message size distribution
func NewCtrlChannelPeekHandler(routerId string, registry metrics.Registry) channel.PeekHandler {
	txBytesMeter := registry.Meter("ctrl.tx.bytesrate:" + routerId)
	txMsgMeter := registry.Meter("ctrl.tx.msgrate:" + routerId)
	txMsgSizeHistogram := registry.Histogram("ctrl.tx.msgsize:" + routerId)
	rxBytesMeter := registry.Meter("ctrl.rx.bytesrate:" + routerId)
	rxMsgMeter := registry.Mete
    
func NewCtrlChannelPeekHandler(routerId string, registry metrics.Registry) channel.PeekHandler {
	txBytesMeter := registry.Meter("ctrl.tx.bytesrate:" + routerId)
	txMsgMeter := registry.Meter("ctrl.tx.msgrate:" + routerId)
	txMsgSizeHistogram := registry.Histogram("ctrl.tx.msgsize:" + routerId)
	rxBytesMeter := registry.Meter("ctrl.rx.bytesrate:" + routerId)
	rxMsgMeter := registry.Meter("ctrl.rx.msgrate:" + routerId)
	rxMsgSizeHistogram := registry.Histogram("ctrl.rx.msgsize:" + routerId)

	closeHook := func() {
		txBytesMeter.Dispose()
		txMsgMeter.Dispose()
		txMsgSizeHistogram.Dispose()
		rxBytesMeter.Dispose()
		rxMsgMeter.Dispose()
		rxMsgSizeHistogram.Dispose()
	}

	return &ctrlChannelPeekHandler{
		txBytesMeter:       txBytesMeter,
		txMsgMeter:         txMsgMeter,
		txMsgSizeHistogram: txMsgSizeHistogram,
		rxBytesMeter:       rxBytesMeter,
		rxMsgMeter:         rxMsgMeter,
		rxMsgSizeHistogram: rxMsgSizeHistogram,
		closeHook:          closeHook,
	}
}