From 3fb433d5246ac39daf56808e5ccbe1446fe91136 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 17 Sep 2024 11:30:21 +0200 Subject: [PATCH] chore: do not proxy sentry dsn (#4359) * chore: do not proxy sentry dsn * linting * lint --- ignite/cmd/ignite/main.go | 2 +- ignite/cmd/testnet_inplace.go | 4 ++-- ignite/internal/analytics/analytics.go | 2 +- ignite/pkg/announcements/announcement.go | 2 +- ignite/pkg/sentry/sentry.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ignite/cmd/ignite/main.go b/ignite/cmd/ignite/main.go index dfeb9a600e..59e5b8cc39 100644 --- a/ignite/cmd/ignite/main.go +++ b/ignite/cmd/ignite/main.go @@ -42,7 +42,7 @@ func run() int { } var wg sync.WaitGroup analytics.SendMetric(&wg, subCmd) - analytics.EnableSentry(&wg, ctx) + analytics.EnableSentry(ctx, &wg) err = cmd.ExecuteContext(ctx) if err != nil { diff --git a/ignite/cmd/testnet_inplace.go b/ignite/cmd/testnet_inplace.go index 17afb21f2a..d5102a9e67 100644 --- a/ignite/cmd/testnet_inplace.go +++ b/ignite/cmd/testnet_inplace.go @@ -1,10 +1,10 @@ package ignitecmd import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/spf13/cobra" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/ignite/cli/v29/ignite/pkg/cliui" "github.com/ignite/cli/v29/ignite/pkg/cosmosaccount" "github.com/ignite/cli/v29/ignite/pkg/errors" diff --git a/ignite/internal/analytics/analytics.go b/ignite/internal/analytics/analytics.go index 131c895f09..ca0e8779df 100644 --- a/ignite/internal/analytics/analytics.go +++ b/ignite/internal/analytics/analytics.go @@ -101,7 +101,7 @@ func SendMetric(wg *sync.WaitGroup, cmd *cobra.Command) { } // EnableSentry enable errors reporting to Sentry. -func EnableSentry(wg *sync.WaitGroup, ctx context.Context) { +func EnableSentry(ctx context.Context, wg *sync.WaitGroup) { dntInfo, err := checkDNT() if err != nil || dntInfo.DoNotTrack { return diff --git a/ignite/pkg/announcements/announcement.go b/ignite/pkg/announcements/announcement.go index 3de7b67eee..224eab46a2 100644 --- a/ignite/pkg/announcements/announcement.go +++ b/ignite/pkg/announcements/announcement.go @@ -19,7 +19,7 @@ type announcement struct { } func GetAnnouncements() string { - resp, err := http.Get(AnnouncementAPI) + resp, err := http.Get(AnnouncementAPI) //nolint:gosec if err != nil || resp.StatusCode != 200 { return fallbackData() } diff --git a/ignite/pkg/sentry/sentry.go b/ignite/pkg/sentry/sentry.go index 3189324291..afde403f4e 100644 --- a/ignite/pkg/sentry/sentry.go +++ b/ignite/pkg/sentry/sentry.go @@ -12,7 +12,7 @@ import ( "github.com/ignite/cli/v29/ignite/version" ) -const IgniteDNS = "https://bugs.ignite.com" +const IgniteDNS = "https://1d862300ead01c5814d8ead3732fd41f@o1152630.ingest.us.sentry.io/4507891348930560" func InitSentry(ctx context.Context) (deferMe func(), err error) { sentrySyncTransport := sentry.NewHTTPSyncTransport()