Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatadogConfig ¶
type DatadogConfig struct { // Env where application is executed, dev, production, staging etc Env string `mapstructure:"dd_env"` // Service how must be service called and displayed in Datadog system Service string `mapstructure:"dd_service"` // ServiceVersion depends on system, can be Git Tag or API version ServiceVersion string `mapstructure:"dd_version"` // DSD Socket path for DD StatsD, important to have unix prefix for that value, example: unix:///var/run/dd/dsd.socket DSD string `mapstructure:"dd_dogstatsd_url"` // APM Socket path for apm and profiler, unix prefix not needed, example: /var/run/dd/apm.socket APM string `mapstructure:"dd_trace_agent_url"` }
DatadogConfig that required to connect to Datadog Agent
func (DatadogConfig) GetApmEndpoint ¶ added in v1.1.0
func (d DatadogConfig) GetApmEndpoint() string
GetApmEndpoint Socket path or URL for APM and profiler unix prefix not needed, example: /var/run/dd/apm.socket
func (DatadogConfig) GetDsdEndpoint ¶ added in v1.1.0
func (d DatadogConfig) GetDsdEndpoint() string
GetDsdEndpoint Socket path or URL for DD StatsD for socket important to have unix prefix for that value, example: unix:///var/run/dd/dsd.socket
func (DatadogConfig) GetEnv ¶ added in v1.1.0
func (d DatadogConfig) GetEnv() string
GetEnv where application is executed, dev, production, staging etc
func (DatadogConfig) GetService ¶ added in v1.1.0
func (d DatadogConfig) GetService() string
GetService how must be service called and displayed in Datadog system
func (DatadogConfig) GetServiceVersion ¶ added in v1.1.0
func (d DatadogConfig) GetServiceVersion() string
GetServiceVersion depends on system, can be Git Tag or API version
func (DatadogConfig) IsDataDogConfigValid ¶ added in v1.1.0
func (d DatadogConfig) IsDataDogConfigValid() bool
IsDataDogConfigValid method to verify if configuration values are correct
type DatadogParameters ¶ added in v1.1.0
type DatadogParameters interface { // GetEnv where application is executed, dev, production, staging etc GetEnv() string // GetService how must be service called and displayed in Datadog system GetService() string // GetServiceVersion depends on system, can be Git Tag or API version GetServiceVersion() string // GetDsdEndpoint Socket path or URL for DD StatsD // for socket important to have unix prefix for that value, example: unix:///var/run/dd/dsd.socket GetDsdEndpoint() string // GetApmEndpoint Socket path or URL for APM and profiler // unix prefix not needed, example: /var/run/dd/apm.socket GetApmEndpoint() string // IsDataDogConfigValid method to verify if configuration values are correct IsDataDogConfigValid() bool }
DatadogParameters for connection and configuring background process to send information to Datadog Agent