Documentation ¶
Overview ¶
Package globalconfig stores configuration which applies globally to both the tracer and integrations. Note that this package is for dd-trace-go.v1 internal testing utilities only. This package is not intended for use by external consumers, no API stability is guaranteed.
Index ¶
- func AnalyticsRate() float64
- func ClearHeaderTags()
- func HeaderTag(header string) string
- func HeaderTagMap() *internal.LockMap
- func HeaderTagsLen() int
- func RuntimeID() string
- func ServiceName() string
- func SetAnalyticsRate(rate float64)
- func SetHeaderTag(from, to string)
- func SetServiceName(name string)
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. This function is not intended for use by external consumers, no API stability is guaranteed.
func ClearHeaderTags ¶
func ClearHeaderTags()
ClearHeaderTags assigns headersAsTags to a new, empty map. It is invoked when WithHeaderTags is called, in order to overwrite the config. This function is not intended for use by external consumers, no API stability is guaranteed.
func HeaderTag ¶
HeaderTag returns the configured tag for a given header. This function exists for testing purposes, for performance you may want to use `HeaderTagMap`. This function is not intended for use by external consumers, no API stability is guaranteed.
func HeaderTagMap ¶
HeaderTagMap returns the mappings of headers to their tag values. This function is not intended for use by external consumers, no API stability is guaranteed.
func HeaderTagsLen ¶
func HeaderTagsLen() int
HeaderTagsLen returns the length of globalconfig's headersAsTags map, 0 for empty map. This function is not intended for use by external consumers, no API stability is guaranteed.
func RuntimeID ¶
func RuntimeID() string
RuntimeID returns this process's unique runtime id. This function is not intended for use by external consumers, no API stability is guaranteed.
func ServiceName ¶
func ServiceName() string
ServiceName returns the default service name used by non-client integrations such as servers and frameworks. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetAnalyticsRate ¶
func SetAnalyticsRate(rate float64)
SetAnalyticsRate sets the given event sampling rate globally. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetHeaderTag ¶
func SetHeaderTag(from, to string)
SetHeaderTag adds config for header `from` with tag value `to`. This function is not intended for use by external consumers, no API stability is guaranteed.
func SetServiceName ¶
func SetServiceName(name string)
SetServiceName sets the global service name set for this application. This function is not intended for use by external consumers, no API stability is guaranteed.
Types ¶
This section is empty.