Files
signoz/pkg/web/settings.go
Vikrant Gupta c6b2fe47d5
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 (#11495)
* 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>
2026-05-29 12:08:00 +00:00

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,
},
}
}