William Petit e756a60373
All checks were successful
arcad/emissary/pipeline/head This commit looks good
feat: sentry integration
2023-10-13 14:22:28 +02:00

19 lines
328 B
Go

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