internal

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DatadogDisable is the environment variable key for whether to disable the Datadog integration.
	DatadogDisable = "DD_DISABLE"
	// DatadogEnableExtraProfiling is the environment variable key for whether to enable extra profiling or not.
	DatadogEnableExtraProfiling = "DD_ENABLE_EXTRA_PROFILING"
	// DatadogEnvironment is the environment variable key determining the Datadog Environment to use.
	DatadogEnvironment = "DD_ENV"
	// DatadogService is the environment variable key for the name of the current service.
	DatadogService = "DD_SERVICE"
	// DatadogVersion is the environment variable key for the version of the current service.
	DatadogVersion = "DD_VERSION"
	// DatadogDSDEndpoint is the environment variable key for the URL to StatsD.
	DatadogDSDEndpoint = "DD_DOGSTATSD_URL"
	// DatadogAPMEndpoint is the environment variable key for the URL to APM.
	DatadogAPMEndpoint = "DD_TRACE_AGENT_URL"
)

Variables

This section is empty.

Functions

func GetBool added in v2.16.0

func GetBool(key string, fallback bool) bool

GetBool returns the boolean value of the environmental variable, if the key is not set or parsing fails the fallback value is returned.

func IsDatadogDisabled added in v2.11.0

func IsDatadogDisabled() bool

IsDatadogDisabled checks if the Datadog integration is disabled. The environment variable DD_DISABLE is checked. If the variable is missing or cannot be parsed to a bool the Datadog integration is assumed to be enabled.

func VerifyEnvVarsSet added in v2.16.0

func VerifyEnvVarsSet(keys ...string) error

VerifyEnvVarsSet checks if the provided environmental variables are defined

Types

This section is empty.

Directories

Path Synopsis
generated
mocks/DataDog/datadog-go/v5/statsd
Code generated by MockGen.
Code generated by MockGen.
mocks/labstack/echo/v4
Code generated by MockGen.
Code generated by MockGen.
mocks/metric
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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