singleton

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package singleton is the home of the metrics feature's default recorder, allowing users of the metrics module to use metrics without passing around the Recorder instance everywhere.

In order to disallow potentially unsafe direct accesses to a global, the implementation of the default is segregated to this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() internal.Recorder

Default returns the metric recording backend currently set as the default

func SetDefault

func SetDefault(recorder internal.Recorder)

SetDefault sets the metric recording backend to use as the default

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL