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: status.go
    path of file: ./repos/emitter/internal/broker
    
    the code of the file until where you have to start completion: /**********************************************************************************
* Copyright (c) 2009-2019 Misakai Ltd.
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Affero General Public License as published by the  Free Software
* Foundation, either version 3 of the License, or(at y
    
func (s *sampler) Snapshot() (snapshot []byte) {
	stat := s.service.measurer
	serv := s.service
	node := address.Fingerprint(serv.ID())
	addr := serv.Config.Addr()

	// Track runtime information
	stat.MeasureRuntime()

	// Track node specific information
	stat.Measure("node.id", int32(node))
	stat.Measure("node.peers", int32(serv.NumPeers()))
	stat.Measure("node.conns", int32(atomic.LoadInt64(&serv.connections)))
	stat.Measure("node.subs", int32(serv.subscriptions.Count()))

	// Add node tags
	stat.Tag("node.id", node.String())
	stat.Tag("node.addr", addr.String())

	// Create a snaphshot of all stats
	if m, ok := stat.(stats.Snapshotter); ok {
		snapshot = m.Snapshot()
	}
	return
}