Versions in this module Expand all Collapse all v1 v1.0.0 Nov 1, 2024 Changes in this version + const DDTagsDelimiter + const DefaultAgentHostname + const DefaultDogstatsdAddr + const DefaultTraceAgentPort + const EnvDDTags + const EnvGitCommitSha + const EnvGitMetadataEnabledFlag + const EnvGitRepositoryURL + const OtelTagsDelimeter + const TagCommitSha + const TagGoPath + const TagRepositoryURL + const TraceTagCommitSha + const TraceTagGoPath + const TraceTagRepositoryURL + var ActiveSpanKey = contextKey + var DefaultTraceAgentUDSPath = "/var/run/datadog/apm.socket" + func AgentURLFromEnv() *url.URL + func BoolEnv(key string, def bool) bool + func BoolVal(val string, def bool) bool + func CleanGitMetadataTags(tags map[string]string) + func ContainerID() string + func DurationEnv(key string, def time.Duration) time.Duration + func EntityID() string + func FloatEnv(key string, def float64) float64 + func ForEachStringTag(str string, delimiter string, fn func(key string, val string)) + func GetGitMetadataTags() map[string]string + func GetTracerGitMetadataTags() map[string]string + func IntEnv(key string, def int) int + func IsExecutionTraced(ctx context.Context) bool + func ParseTagString(str string) map[string]string + func RefreshGitMetadataTags() + func WithExecutionNotTraced(ctx context.Context) context.Context + func WithExecutionTraced(ctx context.Context) context.Context + type LockMap struct + func NewLockMap(m map[string]string) *LockMap + func (l *LockMap) Clear() + func (l *LockMap) Get(k string) string + func (l *LockMap) Iter(f func(key string, val string)) + func (l *LockMap) Len() int + func (l *LockMap) Set(k, v string) + type MetaStructValue struct + Value any + type StatsdClient interface + Close func() error + Count func(name string, value int64, tags []string, rate float64) error + Flush func() error + Gauge func(name string, value float64, tags []string, rate float64) error + Incr func(name string, tags []string, rate float64) error + Timing func(name string, value time.Duration, tags []string, rate float64) error + func NewStatsdClient(addr string, globalTags []string) (StatsdClient, error)