runtime

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 33 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootSeed

func GetRootSeed() int64

func NewCryptoRand

func NewCryptoRand(ctx context.Context) *rand.Rand

func NewRandFromRand

func NewRandFromRand(parent *rand.Rand) *rand.Rand

func NewRandFromRoot

func NewRandFromRoot() *rand.Rand

func NewSourceFromRoot

func NewSourceFromRoot() rand.Source64

func ResourceUsage

func ResourceUsage() string

func RootRandInt63

func RootRandInt63() int64

func SetRootSeed

func SetRootSeed(s int64)

func SetupTelemetry

func SetupTelemetry(ctx context.Context, instanceID string, addr string, config PprofConfig) (shutdown func(context.Context) error, err error)

SetupTelemetry initializes OpenTelemetry with Prometheus and returns a function to shut it down.

Types

type PprofConfig

type PprofConfig struct {
	Enabled            bool
	AllowRemote        bool
	CPUProfileActive   bool
	TraceProfileActive bool
}

PprofConfig controls live profiling and endpoints reserved by file profiling.

Jump to

Keyboard shortcuts

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