Browse Source

fix(toolbar): fix flag and release analytic names (#75374)

- renaming the releases analytic to be more specific
- i also realized that i deleted the feature flag tracking analytic in
https://github.com/getsentry/sentry/pull/75194, but looks like
https://github.com/getsentry/sentry/pull/75305 adds them back!
Michelle Zhang 7 months ago
parent
commit
0454d5f322
1 changed files with 13 additions and 11 deletions
  1. 13 11
      static/app/components/devtoolbar/components/releases/releasesPanel.tsx

+ 13 - 11
static/app/components/devtoolbar/components/releases/releasesPanel.tsx

@@ -79,17 +79,19 @@ function ReleaseSummary({orgSlug, release}: {orgSlug: string; release: Release})
       css={{width: '100%', alignItems: 'flex-start', padding: 'var(--space150)'}}
     >
       <ReleaseInfoHeader css={infoHeaderCss}>
-        <SentryAppLink
-          to={{
-            url: `/organizations/${orgSlug}/releases/${encodeURIComponent(release.version)}/`,
-            query: {project: release.projects[0].id},
-          }}
-        >
-          <VersionWrapper>{formatVersion(release.version)}</VersionWrapper>
-        </SentryAppLink>
-        {release.commitCount > 0 && (
-          <ReleaseCardCommits release={release} withHeading={false} />
-        )}
+        <AnalyticsProvider nameVal="latest release" keyVal="latest-release">
+          <SentryAppLink
+            to={{
+              url: `/organizations/${orgSlug}/releases/${encodeURIComponent(release.version)}/`,
+              query: {project: release.projects[0].id},
+            }}
+          >
+            <VersionWrapper>{formatVersion(release.version)}</VersionWrapper>
+          </SentryAppLink>
+          {release.commitCount > 0 && (
+            <ReleaseCardCommits release={release} withHeading={false} />
+          )}
+        </AnalyticsProvider>
       </ReleaseInfoHeader>
       <ReleaseInfoSubheader
         css={[resetFlexColumnCss, subtextCss, {alignItems: 'flex-start'}]}