MCPcopy
hub / github.com/grafana/tempo / init

Function init

cmd/tempo/main.go:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34)
35
36func init() {
37 version.Version = Version
38 version.Branch = Branch
39 version.Revision = Revision
40
41 prometheus.MustRegister(ver.NewCollector(appName))
42
43 // Register the gogocodec as early as possible.
44 encoding.RegisterCodec(gogocodec.NewCodec())
45}
46
47func main() {
48 printVersion := flag.Bool("version", false, "Print this builds version information")

Callers

nothing calls this directly

Calls 2

NewCodecFunction · 0.92
MustRegisterMethod · 0.80

Tested by

no test coverage detected