19 lines
328 B
Go
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),
|
|
}
|
|
}
|