Documentation ¶
Overview ¶
Package globalconfig stores configuration which applies globally to both the tracer and integrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyticsRate ¶
func AnalyticsRate() float64
AnalyticsRate returns the sampling rate at which events should be marked. It uses synchronizing mechanisms, meaning that for optimal performance it's best to read it once and store it.
func RuntimeID ¶ added in v1.26.0
func RuntimeID() string
RuntimeID returns this process's unique runtime id.
func ServiceName ¶ added in v1.24.0
func ServiceName() string
ServiceName returns the default service name used by non-client integrations such as servers and frameworks.
func SetAnalyticsRate ¶
func SetAnalyticsRate(rate float64)
SetAnalyticsRate sets the given event sampling rate globally.
func SetServiceName ¶ added in v1.24.0
func SetServiceName(name string)
SetServiceName sets the global service name set for this application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.