emissary/internal/config/sentry.go

19 lines
284 B
Go

package config
import (
"os"
)
type SentryConfig struct {
DSN string `yaml:"dsn"`
Environment string `yaml:"environment"`
}
func NewDefaultSentryConfig() SentryConfig {
hostname, _ := os.Hostname()
return SentryConfig{
DSN: "",
Environment: hostname,
}
}