refactor to context, remove sentry spans
This commit is contained in:
@@ -21,8 +21,7 @@ func New() *Config {
|
||||
Federation: env.Bool("federation"),
|
||||
MaxSize: env.Int("maxsize", defaultConfig.MaxSize),
|
||||
Sentry: Sentry{
|
||||
DSN: env.String("sentry.dsn", defaultConfig.Sentry.DSN),
|
||||
SampleRate: env.Int("sentry.rate", defaultConfig.Sentry.SampleRate),
|
||||
DSN: env.String("sentry.dsn", defaultConfig.Sentry.DSN),
|
||||
},
|
||||
LogLevel: env.String("loglevel", defaultConfig.LogLevel),
|
||||
DB: DB{
|
||||
|
||||
@@ -10,7 +10,4 @@ var defaultConfig = &Config{
|
||||
DSN: "local.db",
|
||||
Dialect: "sqlite3",
|
||||
},
|
||||
Sentry: Sentry{
|
||||
SampleRate: 20,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -42,6 +42,5 @@ type DB struct {
|
||||
|
||||
// Sentry config
|
||||
type Sentry struct {
|
||||
DSN string
|
||||
SampleRate int
|
||||
DSN string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user