Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(error-tracking): warn when the SDK never reported a release id (#96649)

Aleksander Błaszkiewiczc19d5e5f7da3
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index e84edf4bc70f..38f2a4e9d405 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2356,6 +2356,22 @@ snapshots:
hash: v1.k794b7964.daf1d61523fb4f9194c535437fc416212b831201df537bc6773eb297f65defd9.BOG2sX6hdQgIR6b5Bxaw61ivfxG5ciYSmYGa3M9Vqik
errortracking-exceptionpropertiestable--empty--light:
hash: v1.k794b7964.adefeb2d8c52b7fe9f5ade2cecb5894f3c8e6e92a92f117752da938b0addb43a.ZaYOt5aQ6lMzU6-6JMlS0P4hmvqG8TfUCJJqz2SZwQ4
+ errortracking-missingreleaseidbanner--default--dark:
+ hash: v1.k794b7964.b24ebdfd2a72775751494c928da87337da563bd230a07e63afef82b404542766.9ioBoXCfvj6dNwYIl7Tb0eVzQUnQ6_mLfHMmKAhNFyE
+ errortracking-missingreleaseidbanner--default--light:
+ hash: v1.k794b7964.80e19e5fdd1cd80731b89648d3affa240fc6ae4d7df58aac4207333dd03ae241.8LXXwDoofWndcO3PiJJN93T7w1A37L9hYLs-0Y8Ciwc
+ errortracking-missingreleaseidmodal--node-sdk--dark:
+ hash: v1.k794b7964.aa7b0b29db304c80df7455b5c67ee2eac9d8f67e0fb81ed2c2466e05130d3acc.s2ah24O7oVFI4w38dQpho7O489GFiu5HukRRxuyrsBE
+ errortracking-missingreleaseidmodal--node-sdk--light:
+ hash: v1.k794b7964.8870fd4aab87b65d182e906adbf6f4d54069a3d6f44f788ee558e9ea4a6a8324.H1lRQn-MB63-b8uUhRgvRGah5dc1xInjL5_UU_x8ZWY
+ errortracking-missingreleaseidmodal--unknown-sdk--dark:
+ hash: v1.k794b7964.fe9061d82ab0d20cd5a8f013a33cb92e9bcc5f0838e2d3ec257049d74320d17a.75IeYMupV5UJ12MLppdUhfYDombXPZlVZuCHw6kPj_E
+ errortracking-missingreleaseidmodal--unknown-sdk--light:
+ hash: v1.k794b7964.79b95b3bf381698e307c72527e387b25bb67af6fc0cfc09cf0507b08114109c3.BY5gs5Adc-7V1MfurcxHXcjAdpLnPAqZYbKU09_wtIo
+ errortracking-missingreleaseidmodal--web-sdk--dark:
+ hash: v1.k794b7964.20714ef348bc3dd390a78251c42929a5d4d1d472c5b8c30510be809eb0f31cbd.Nh6oxiG3UCUfh1WkyM0b5DZm8EHUUB6YwCS1ReHclbY
+ errortracking-missingreleaseidmodal--web-sdk--light:
+ hash: v1.k794b7964.b11893dc528297cf214ac86002e9b93b42754763e725bd3239670a25236b97f2.GksTeXk-mxZWKQJRMtg0GybvIYHvNmaL4mmKGzN-Evs
errortracking-ratelimithistorychart--empty--dark:
hash: v1.k794b7964.ba7eeab8b8da615a5f0641fa228edd6495cdba345860cbe418d736c1d6fbf5ad.Y17RTMCD78FYAVkdyD82nihxohmoVy0ye_eyLjzeTxQ
errortracking-ratelimithistorychart--empty--light:
@@ -6921,11 +6937,11 @@ snapshots:
scenes-app-errortracking--group-page-breakdown-loading--light:
hash: v1.k794b7964.f4f450e6a3effb92cf07e8ed487968cf5a993a4fff653b082df4baf6239bfa9a.6wjM3R5L2LFDzdxnqtoNyHs90SoQiLZO5Hwg7AHM0To
scenes-app-errortracking--group-page-breakdown-modal--dark:
- hash: v1.k794b7964.4df823170b24e0170171c6841ef0126f6ef042f5f28173958959aa7469704087.86hvk1n6TWtaIk85RAMaygZ2pVsU4EsT6XlmevrrHt8
+ hash: v1.k794b7964.ed3b3948ba6dacd684118a2b0435cc256d562832e9c6c48714fb63c6ccc03fb5.hvoGqWd072_Djnsi6KCgl27r_EE07Lc1kXWimIzJ2aM
scenes-app-errortracking--group-page-breakdown-modal--light:
hash: v1.k794b7964.9a9297a05f7941816c6c550209aeec5fb20164a13814579c6bc314f701b41557.mD1RcWwAz4INsXdw8PHyMo2in7ZlQpz0g4_PhT90nT4
scenes-app-errortracking--group-page-breakdown-modal-loading--dark:
- hash: v1.k794b7964.e19707caf474d78777b1b88c8a03d4a6619d0a423d0db2553e24951161c266e6.EWf2MelREK7oDbF4-YW2sq5r9Cy6-gl5NNKxEwZx-GI
+ hash: v1.k794b7964.504f338ca42bd162ca8f4f96226e585ee65bdf35d433b165cc73d6dcc92cc0ef.uZaYlZv_L88Q5F0wxBAapu9PuQ2niTIvPOK72wtuhmw
scenes-app-errortracking--group-page-breakdown-modal-loading--light:
hash: v1.k794b7964.73e4178244de167ed3c5ef90dcc1baf6fd2f10ef32f3a638425bbf3a4bad6812.7CZLkOg29DdfpM3WpoFiBQNnPelP45GkD5b2_hAtLzI
scenes-app-errortracking--group-page-capped-breakdown-panel--dark:
diff --git a/frontend/src/lib/components/Errors/errorPropertiesLogic.ts b/frontend/src/lib/components/Errors/errorPropertiesLogic.ts
index ae40ef38d91a..d37d7abcd2d5 100644
--- a/frontend/src/lib/components/Errors/errorPropertiesLogic.ts
+++ b/frontend/src/lib/components/Errors/errorPropertiesLogic.ts
@@ -17,6 +17,7 @@ import {
getFingerprintRecords,
getRecordingStatus,
getSessionId,
+ isReleaseIdMissingFromSDK,
} from 'lib/components/Errors/utils'
import { dayjs } from 'lib/dayjs'
import { preflightLogic } from 'lib/logic/preflightLogic'
@@ -51,6 +52,7 @@ export interface errorPropertiesLogicValues {
properties: Record<string, any>
recordingStatus: string | undefined
release: ErrorTrackingRelease | null | undefined
+ releaseIdMissingFromSDK: boolean
sessionId: string | undefined
uuid: string
}
@@ -92,6 +94,12 @@ export interface errorPropertiesLogicMeta {
frames: ErrorTrackingStackFrame[],
stackFrameRecords: KeyedStackFrameRecords
) => ErrorTrackingRelease | null | undefined
+ releaseIdMissingFromSDK: (
+ properties: Record<string, any>,
+ frames: ErrorTrackingStackFrame[],
+ stackFrameRecords: KeyedStackFrameRecords,
+ stackFrameRecordsLoading: boolean
+ ) => boolean
}
}
@@ -213,6 +221,20 @@ export const errorPropertiesLogic = kea<errorPropertiesLogicType>([
return sortedReleases[0]
},
],
+ releaseIdMissingFromSDK: [
+ (s) => [s.properties, s.frames, s.stackFrameRecords, s.stackFrameRecordsLoading],
+ (
+ properties: ErrorEventProperties,
+ frames: ErrorTrackingStackFrame[],
+ stackFrameRecords: KeyedStackFrameRecords,
+ stackFrameRecordsLoading: boolean
+ ) => {
+ if (stackFrameRecordsLoading) {
+ return false
+ }
+ return isReleaseIdMissingFromSDK(properties, frames, stackFrameRecords)
+ },
+ ],
}),
subscriptions(({ actions }) => ({
diff --git a/frontend/src/lib/components/Errors/utils.test.ts b/frontend/src/lib/components/Errors/utils.test.ts
index b5dc5c3ec55c..acabac7459c5 100644
--- a/frontend/src/lib/components/Errors/utils.test.ts
+++ b/frontend/src/lib/components/Errors/utils.test.ts
@@ -1,4 +1,9 @@
-import { ErrorEventProperties, ErrorTrackingStackFrame, ExceptionAttributes } from './types'
+import {
+ ErrorEventProperties,
+ ErrorTrackingStackFrame,
+ ErrorTrackingStackFrameRecord,
+ ExceptionAttributes,
+} from './types'
import {
getExceptionAttributes,
getExceptionList,
@@ -6,6 +11,7 @@ import {
getInstructionAddress,
getRuntimeFromLib,
getSessionId,
+ isReleaseIdMissingFromSDK,
} from './utils'
describe('Error Display', () => {
@@ -315,4 +321,34 @@ describe('Error Display', () => {
expect(result[0].stacktrace?.frames[0].raw_id).toEqual('abc/0')
expect(frame.raw_id).toEqual('abc')
})
+
+ const RELEASE = { id: 'release-id', version: '1.2.3', created_at: '2026-08-04T10:00:00Z' }
+ const UPLOADED_SET = { symbol_set_ref: 'chunk-id', release: null }
+ const UPLOADED_SET_WITH_RELEASE = { symbol_set_ref: 'chunk-id', release: RELEASE }
+ const FETCHED_SET = { symbol_set_ref: 'https://example.com/main.js.map', release: null }
+ const UNRESOLVED_FRAME = { symbol_set_ref: null, release: null }
+
+ it.each([
+ ['a frame that used no symbol set', {}, [UNRESOLVED_FRAME], false],
+ ['a symbol set PostHog fetched from the web', {}, [FETCHED_SET], false],
+ ['a symbol set uploaded with a release', {}, [UPLOADED_SET_WITH_RELEASE], false],
+ ['a release id reported by the SDK', { $release_id: 'release-id' }, [UPLOADED_SET], false],
+ [
+ 'a release resolved for the event',
+ { $exception_release: { id: 'release-id', version: '1.2.3', timestamp: '2026-08-04T10:00:00Z' } },
+ [UPLOADED_SET],
+ false,
+ ],
+ ['one of two symbol sets with a release', {}, [UPLOADED_SET, UPLOADED_SET_WITH_RELEASE], false],
+ ['two symbol sets uploaded without a release', {}, [UPLOADED_SET, UPLOADED_SET], true],
+ ['a frame whose record did not load', {}, [UPLOADED_SET, undefined], false],
+ ])('reports a release the SDK never sent for %s', (_name, properties, records, expected) => {
+ const frames = records.map((_, index) => ({ raw_id: `frame-${index}` }) as ErrorTrackingStackFrame)
+ const keyedRecords = Object.fromEntries(
+ records.flatMap((record, index) =>
+ record ? [[`frame-${index}`, record as ErrorTrackingStackFrameRecord]] : []
+ )
+ )
+ expect(isReleaseIdMissingFromSDK(properties as ErrorEventProperties, frames, keyedRecords)).toBe(expected)
+ })
})
diff --git a/frontend/src/lib/components/Errors/utils.ts b/frontend/src/lib/components/Errors/utils.ts
index 1abc9a897cfb..360561c6a8cb 100644
--- a/frontend/src/lib/components/Errors/utils.ts
+++ b/frontend/src/lib/components/Errors/utils.ts
@@ -10,6 +10,7 @@ import {
ErrorTrackingRelease,
ErrorTrackingRuntime,
ErrorTrackingStackFrame,
+ ErrorTrackingStackFrameRecord,
ExceptionAttributes,
FingerprintRecordPart,
} from './types'
@@ -263,6 +264,34 @@ export function getExceptionRelease(properties: ErrorEventProperties): ErrorTrac
}
}
+// Uploaded symbol sets without a release leave the SDK's `$release_id` as the only source of a release.
+// A symbol set fetched by URL never carries one, so it cannot signal a missing `$release_id`.
+// A frame with no loaded record still could, so the answer stays unknown until every frame has one.
+export function isReleaseIdMissingFromSDK(
+ properties: ErrorEventProperties,
+ frames: ErrorTrackingStackFrame[],
+ stackFrameRecords: Record<string, ErrorTrackingStackFrameRecord>
+): boolean {
+ if (!properties || properties['$release_id'] || getExceptionRelease(properties)) {
+ return false
+ }
+
+ const records = frames.map((frame) => stackFrameRecords[frame.raw_id])
+ if (records.some((record) => !record)) {
+ return false
+ }
+
+ const uploadedSymbolSets = records.filter(
+ (record) => !!record.symbol_set_ref && !isFetchedSymbolSetRef(record.symbol_set_ref)
+ )
+
+ return uploadedSymbolSets.length > 0 && uploadedSymbolSets.every((record) => !record.release)
+}
+
+function isFetchedSymbolSetRef(ref: string): boolean {
+ return ref.startsWith('http://') || ref.startsWith('https://')
+}
+
// we had a bug where SDK was sending non-string values for exception value
function ensureStringExceptionValues(exceptionList: ErrorTrackingException[]): ErrorTrackingException[] {
if (!Array.isArray(exceptionList)) {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ee6b80ca4762..90bbfbf97360 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -3284,6 +3284,9 @@ importers:
'@dnd-kit/utilities':
specifier: '*'
version: 3.2.1([email protected])
+ '@posthog/brand':
+ specifier: 'catalog:'
+ version: 0.11.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
diff --git a/products/error_tracking/frontend/__mocks__/stack_frames/batch_get.ts b/products/error_tracking/frontend/__mocks__/stack_frames/batch_get.ts
index e3db0765a745..20173fafdc61 100644
--- a/products/error_tracking/frontend/__mocks__/stack_frames/batch_get.ts
+++ b/products/error_tracking/frontend/__mocks__/stack_frames/batch_get.ts
@@ -48,7 +48,12 @@ function generateFrameContext(frame: ErrorTrackingStackFrame): ErrorTrackingStac
},
contents: frame,
symbol_set_ref: '123123',
- release: null,
+ release: {
+ id: '019aca26-0a47-776c-baa2-0afbec3ec7bb',
+ version: '1.2.3',
+ project: 'error-tracking-mock',
+ created_at: '2025-04-21T22:02:15.122000Z',
+ },
}
}
diff --git a/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.stories.tsx b/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.stories.tsx
new file mode 100644
index 000000000000..dc88b65d6f7f
--- /dev/null
+++ b/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.stories.tsx
@@ -0,0 +1,27 @@
+import { Meta } from '@storybook/react'
+
+import { StyleVariables } from '../StyleVariables'
+import { MissingReleaseIdBanner } from './MissingReleaseIdBanner'
+
+const meta: Meta = {
+ title: 'ErrorTracking/MissingReleaseIdBanner',
+ parameters: {
+ layout: 'centered',
+ viewMode: 'story',
+ },
+ decorators: [
+ (Story: React.FC): JSX.Element => (
+ <StyleVariables>
+ <div className="w-[600px]">
+ <Story />
+ </div>
+ </StyleVariables>
+ ),
+ ],
+}
+
+export default meta
+
+export function Default(): JSX.Element {
+ return <MissingReleaseIdBanner eventId="event-id" runtime="web" />
+}
diff --git a/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.tsx b/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.tsx
new file mode 100644
index 000000000000..62f97ae8fea2
--- /dev/null
+++ b/products/error_tracking/frontend/components/Banners/MissingReleaseIdBanner.tsx
@@ -0,0 +1,34 @@
+import { useActions } from 'kea'
+
+import { LemonBanner } from '@posthog/lemon-ui'
+
+import { ErrorTrackingRuntime } from 'lib/components/Errors/types'
+
+import { MissingReleaseIdModal } from './MissingReleaseIdModal'
+import { missingReleaseIdModalLogic } from './missingReleaseIdModalLogic'
+
+export interface MissingReleaseIdBannerProps {
+ eventId: string
+ runtime?: ErrorTrackingRuntime
+}
+
+export function MissingReleaseIdBanner({ eventId, runtime }: MissingReleaseIdBannerProps): JSX.Element {
+ const { openModal } = useActions(missingReleaseIdModalLogic({ eventId }))
+
+ return (
+ <>
+ <LemonBanner
+ type="warning"
+ action={{
+ onClick: openModal,
+ children: 'Read more',
+ 'data-attr': 'error-tracking-missing-release-id-read-more',
+ }}
+ className="m-2"
+ >
+ This exception has no release attached. Please update your PostHog SDK to the latest version.
+ </LemonBanner>
+ <MissingReleaseIdModal eventId={eventId} runtime={runtime} />
+ </>
+ )
+}
diff --git a/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.stories.tsx b/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.stories.tsx
new file mode 100644
index 000000000000..799914139d51
--- /dev/null
+++ b/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.stories.tsx
@@ -0,0 +1,36 @@
+import { Meta } from '@storybook/react'
+import { useActions } from 'kea'
+
+import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'
+
+import { MissingReleaseIdModal, MissingReleaseIdModalProps } from './MissingReleaseIdModal'
+import { missingReleaseIdModalLogic } from './missingReleaseIdModalLogic'
+
+const meta: Meta<typeof MissingReleaseIdModal> = {
+ title: 'ErrorTracking/MissingReleaseIdModal',
+ component: MissingReleaseIdModal,
+ parameters: {
+ layout: 'fullscreen',
+ viewMode: 'story',
+ },
+}
+
+export default meta
+
+function OpenedModal(props: MissingReleaseIdModalProps): JSX.Element {
+ const { openModal } = useActions(missingReleaseIdModalLogic({ eventId: props.eventId }))
+ useOnMountEffect(() => openModal())
+ return <MissingReleaseIdModal {...props} />
+}
+
+export function WebSdk(): JSX.Element {
+ return <OpenedModal eventId="event-id" runtime="web" />
+}
+
+export function NodeSdk(): JSX.Element {
+ return <OpenedModal eventId="event-id" runtime="node" />
+}
+
+export function UnknownSdk(): JSX.Element {
+ return <OpenedModal eventId="event-id" runtime="go" />
+}
diff --git a/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.tsx b/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.tsx
new file mode 100644
index 000000000000..efb09b177ce3
--- /dev/null
+++ b/products/error_tracking/frontend/components/Banners/MissingReleaseIdModal.tsx
@@ -0,0 +1,68 @@
+import { useActions, useValues } from 'kea'
+
+import * as handClaspPng from '@posthog/brand/hoggies/png/hand-clasp'
+import { LemonButton, LemonModal } from '@posthog/lemon-ui'
+
+import { pngHoggie } from 'lib/brand/hoggies'
+import { ErrorTrackingRuntime } from 'lib/components/Errors/types'
+
+import { missingReleaseIdModalLogic } from './missingReleaseIdModalLogic'
+
+const HedgehogHandClasp = pngHoggie(handClaspPng)
+
+interface SdkRequirement {
+ packageName: string
+ version: string
+}
+
+// The first SDK version that reports `$release_id` on exceptions (PostHog/posthog-js#4308).
+const SDK_REQUIREMENT_BY_RUNTIME: Partial<Record<ErrorTrackingRuntime, SdkRequirement>> = {
+ web: { packageName: 'posthog-js', version: '1.409.0' },
+ node: { packageName: 'posthog-node', version: '5.47.0' },
+}
+
+export interface MissingReleaseIdModalProps {
+ eventId: string
+ runtime?: ErrorTrackingRuntime
+}
+
+export function MissingReleaseIdModal({ eventId, runtime }: MissingReleaseIdModalProps): JSX.Element {
+ const { isModalOpen } = useValues(missingReleaseIdModalLogic({ eventId }))
+ const { closeModal } = useActions(missingReleaseIdModalLogic({ eventId }))
+ const sdk = runtime ? SDK_REQUIREMENT_BY_RUNTIME[runtime] : undefined
+
+ return (
+ <LemonModal isOpen={isModalOpen} onClose={closeModal} simple width={480}>
+ <div className="flex flex-col items-center gap-2.5 p-6 text-center">
+ <HedgehogHandClasp className="block w-auto mx-auto h-28" />
+ <h2 className="m-0 text-2xl font-bold">Update your SDK to attach releases</h2>
+ <p className="m-0 text-secondary text-pretty">
+ We recently changed how releases work. The CLI now injects a release id into your build, and the SDK
+ sends it with every exception. Both need to be up to date.
+ </p>
+ <p className="m-0 text-secondary text-pretty">
+ It looks like you updated only the CLI. This exception came from a build the new CLI processed, but
+ the SDK did not report a release id.
+ </p>
+ <p className="m-0 text-pretty">
+ {sdk ? (
+ <>
+ Update <strong>{sdk.packageName}</strong> to version <strong>{sdk.version}</strong> or
+ later, then deploy again.
+ </>
+ ) : (
+ <>Update your PostHog SDK to the latest version, then deploy again.</>
+ )}
+ </p>
+ <LemonButton
+ type="primary"
+ onClick={closeModal}
+ className="mt-2"
+ data-attr="error-tracking-missing-release-id-modal-close"
+ >
+ Got it
+ </LemonButton>
+ </div>
+ </LemonModal>
+ )
+}
diff --git a/products/error_tracking/frontend/components/Banners/missingReleaseIdModalLogic.ts b/products/error_tracking/frontend/components/Banners/missingReleaseIdModalLogic.ts
new file mode 100644
index 000000000000..ebcdc2dc4bef
--- /dev/null
+++ b/products/error_tracking/frontend/components/Banners/missingReleaseIdModalLogic.ts
@@ -0,0 +1,53 @@
+import { MakeLogicType, actions, kea, key, path, props, reducers } from 'kea'
+
+export interface MissingReleaseIdModalLogicProps {
+ eventId: string
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface missingReleaseIdModalLogicValues {
+ isModalOpen: boolean
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface missingReleaseIdModalLogicActions {
+ closeModal: () => {
+ value: true
+ }
+ openModal: () => {
+ value: true
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface missingReleaseIdModalLogicMeta {
+ key: string
+}
+
+export type missingReleaseIdModalLogicType = MakeLogicType<
+ missingReleaseIdModalLogicValues,
+ missingReleaseIdModalLogicActions,
+ MissingReleaseIdModalLogicProps,
+ missingReleaseIdModalLogicMeta
+>
+
+export const missingReleaseIdModalLogic = kea<missingReleaseIdModalLogicType>([
+ props({} as MissingReleaseIdModalLogicProps),
+ key((props) => props.eventId),
+ path((key) => ['products', 'error_tracking', 'components', 'Banners', 'missingReleaseIdModalLogic', key]),
+
+ actions({
+ openModal: true,
+ closeModal: true,
+ }),
+
+ reducers({
+ isModalOpen: [
+ false,
+ {
+ openModal: () => true,
+ closeModal: () => false,
+ },
+ ],
+ }),
+])
diff --git a/products/error_tracking/frontend/components/ExceptionCard/Tabs/StackTraceTab/index.tsx b/products/error_tracking/frontend/components/ExceptionCard/Tabs/StackTraceTab/index.tsx
index eae5cccf615f..660cdf2eba08 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/Tabs/StackTraceTab/index.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/Tabs/StackTraceTab/index.tsx
@@ -7,6 +7,7 @@ import { LoadingExceptionList } from 'lib/components/Errors/ExceptionList/Loadin
import { TabsContent } from 'lib/ui/quill'
import { cn } from 'lib/utils/css-classes'
+import { MissingReleaseIdBanner } from '../../../Banners/MissingReleaseIdBanner'
import { ExceptionAttributesPreview } from '../../../ExceptionAttributesPreview'
import { ExceptionPlatformPills } from '../../../ExceptionAttributesPreview/ExceptionPlatformPills'
import { ReleasePreviewPill } from '../../../ReleasesPreview/ReleasePreviewPill'
@@ -21,7 +22,7 @@ export interface StackTraceTabProps extends Omit<ComponentProps<typeof TabsConte
export function StackTraceTab({ className, renderActions, ...props }: StackTraceTabProps): JSX.Element {
const { loading } = useValues(exceptionCardLogic)
- const { exceptionAttributes, release } = useValues(errorPropertiesLogic)
+ const { exceptionAttributes, release, releaseIdMissingFromSDK, uuid } = useValues(errorPropertiesLogic)
return (
<TabsContent {...props} className={cn('flex flex-col', className)}>
@@ -33,6 +34,9 @@ export function StackTraceTab({ className, renderActions, ...props }: StackTrace
</div>
{renderActions?.()}
</SubHeader>
+ {releaseIdMissingFromSDK && !loading && (
+ <MissingReleaseIdBanner eventId={uuid} runtime={exceptionAttributes?.runtime} />
+ )}
<div className="flex-1 min-h-0 overflow-y-auto">
<StacktraceIssueDisplay className="p-2" />
</div>
diff --git a/products/error_tracking/package.json b/products/error_tracking/package.json
index 587a76729a5b..05ccfbc86236 100644
--- a/products/error_tracking/package.json
+++ b/products/error_tracking/package.json
@@ -22,6 +22,7 @@
"@dnd-kit/modifiers": "*",
"@dnd-kit/sortable": "*",
"@dnd-kit/utilities": "*",
+ "@posthog/brand": "catalog:",
"@posthog/icons": "catalog:",
"@storybook/react": "catalog:",
"@testing-library/jest-dom": "*",