Documentation
¶
Index ¶
- Constants
- func AppDone()
- func DefaultConfig() *ds.Config
- func Disable(disconnect bool)
- func Enable()
- func Enabled() bool
- func GetAppRunId() string
- func Init(cfgParam *ds.Config) (bool, error)
- func OrigStderr() *os.File
- func OrigStdout() *os.File
- func OutrigVersion() string
- func SetGoRoutineName(name string)
- func Shutdown()
- func TrackCounter[T Number](name string, val T)
- func TrackValue(name string, val any)
- func WatchAtomic[T any](name string, val AtomicLoader[T])
- func WatchAtomicCounter[T Number](name string, val AtomicLoader[T])
- func WatchCounterFunc[T Number](name string, getFn func() T)
- func WatchCounterSync[T Number](name string, lock sync.Locker, val *T)
- func WatchFunc[T any](name string, getFn func() T)
- func WatchSync[T any](name string, lock sync.Locker, val *T)
- type AtomicLoader
- type AtomicStorer
- type Config
- type Float
- type Integer
- type Number
Constants ¶
View Source
const ( DomainSocketEnvName = ds.DomainSocketEnvName DisabledEnvName = ds.DisabledEnvName NoTelemetryEnvName = ds.NoTelemetryEnvName )
Environment variables
Variables ¶
This section is empty.
Functions ¶
func AppDone ¶
func AppDone()
AppDone signals that the application is done This should be deferred in the program's main function
func DefaultConfig ¶
DefaultConfig returns the default configuration
func GetAppRunId ¶
func GetAppRunId() string
GetAppRunId returns the unique identifier for the current application run
func OrigStderr ¶
OrigStderr returns the original stderr stream that was captured during initialization
func OrigStdout ¶
OrigStdout returns the original stdout stream that was captured during initialization
func SetGoRoutineName ¶
func SetGoRoutineName(name string)
SetGoRoutineName sets a name for the current goroutine
func TrackCounter ¶
func TrackValue ¶
func WatchAtomic ¶
func WatchAtomic[T any](name string, val AtomicLoader[T])
func WatchAtomicCounter ¶
func WatchAtomicCounter[T Number](name string, val AtomicLoader[T])
func WatchCounterFunc ¶
Types ¶
type AtomicLoader ¶
type AtomicLoader[T any] interface { Load() T }
type AtomicStorer ¶
type AtomicStorer[T any] interface { Store(val T) }
Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
collector/loginitex
Package loginitex provides external process-based log capture functionality
|
Package loginitex provides external process-based log capture functionality |
|
ioutrig
internal outrig package (used to get around circular references for internal outrig SDK calls)
|
internal outrig package (used to get around circular references for internal outrig SDK calls) |
|
server
module
|
Click to show internal directories.
Click to hide internal directories.