config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDataDogConfigValid

func IsDataDogConfigValid(cfg DatadogConfig) bool

IsDataDogConfigValid with given values

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

Jump to

Keyboard shortcuts

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