mirror of
https://github.com/SigNoz/signoz.git
synced 2026-06-20 15:20:31 +01:00
Some checks failed
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
build-staging / staging (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
build-staging / prepare (push) Has been cancelled
* feat(web): add support for sentry and pylon * feat(web): add support for sentry and pylon * feat(web): add support for sentry and pylon * feat(web): removed bootdata.ts and maintaining websettings as single source of truth * feat(web): update the example.yaml --------- Co-authored-by: SagarRajput-7 <sagar@signoz.io>
42 lines
858 B
Go
42 lines
858 B
Go
package web
|
|
|
|
type Settings struct {
|
|
Posthog Posthog `json:"posthog" required:"true"`
|
|
Appcues Appcues `json:"appcues" required:"true"`
|
|
Sentry Sentry `json:"sentry" required:"true"`
|
|
Pylon Pylon `json:"pylon" required:"true"`
|
|
}
|
|
|
|
type Posthog struct {
|
|
Enabled bool `json:"enabled" required:"true"`
|
|
}
|
|
|
|
type Appcues struct {
|
|
Enabled bool `json:"enabled" required:"true"`
|
|
}
|
|
|
|
type Sentry struct {
|
|
Enabled bool `json:"enabled" required:"true"`
|
|
}
|
|
|
|
type Pylon struct {
|
|
Enabled bool `json:"enabled" required:"true"`
|
|
}
|
|
|
|
func NewSettings(config Config) Settings {
|
|
return Settings{
|
|
Posthog: Posthog{
|
|
Enabled: config.Settings.Posthog.Enabled,
|
|
},
|
|
Appcues: Appcues{
|
|
Enabled: config.Settings.Appcues.Enabled,
|
|
},
|
|
Sentry: Sentry{
|
|
Enabled: config.Settings.Sentry.Enabled,
|
|
},
|
|
Pylon: Pylon{
|
|
Enabled: config.Settings.Pylon.Enabled,
|
|
},
|
|
}
|
|
}
|