Versions in this module Expand all Collapse all v0 v0.6.0 Mar 5, 2020 Changes in this version + const DatadogAPIKeyEnvVar + const DatadogKMSAPIKeyEnvVar + const DatadogLogLevelEnvVar + const DatadogShouldUseLogForwarderEnvVar + const DatadogSiteEnvVar + const DefaultSite + const EnhancedMetrics + func AddTraceHeaders(ctx context.Context, req *http.Request) + func Distribution(metric string, value float64, tags ...string) + func GetContext() context.Context + func GetTraceHeaders(ctx context.Context) map[string]string + func InvokeDryRun(callback func(ctx context.Context), cfg *Config) (interface{}, error) + func Metric(metric string, value float64, tags ...string) + func MetricWithTimestamp(metric string, value float64, timestamp time.Time, tags ...string) + func WrapHandler(handler interface{}, cfg *Config) interface + type Config struct + APIKey string + BatchInterval time.Duration + DebugLogging bool + EnhancedMetrics bool + KMSAPIKey string + ShouldRetryOnFailure bool + ShouldUseLogForwarder bool + Site string