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): add fingerprint redirect URL for stable issue links (#71031)

Aleksander Błaszkiewicz64add0325149
diff --git a/frontend/src/initKea.ts b/frontend/src/initKea.ts
index 0d6bd8744d3a..86194162c55c 100644
--- a/frontend/src/initKea.ts
+++ b/frontend/src/initKea.ts
@@ -35,6 +35,7 @@ const ERROR_FILTER_ALLOW_LIST = [
'loadData', // Gracefully handled in the data table
'loadRecordingMeta', // Gracefully handled in the recording player
'loadSimilarIssues', // Gracefully handled in the similar issues list
+ 'resolveFingerprint', // Retried while the error finishes ingesting; the fingerprint scene surfaces its own state
'saveEarlyAccessFeature', // Field-level errors handled in earlyAccessFeatureLogic
'loadExistingSubscription', // Background eligibility check for the dashboard subscribe nudge
'loadFreeTierSubscriptionCount', // Background free-tier limit check for the dashboard subscribe nudge
diff --git a/frontend/src/productScenes.tsx b/frontend/src/productScenes.tsx
index 3de4bda095e2..bbd08564cd18 100644
--- a/frontend/src/productScenes.tsx
+++ b/frontend/src/productScenes.tsx
@@ -79,6 +79,8 @@ export const productScenes: Record<string, () => Promise<any>> = {
import('../../products/error_tracking/frontend/scenes/ErrorTrackingIssueScene/ErrorTrackingIssueScene'),
ErrorTrackingIssueFingerprints: () =>
import('../../products/error_tracking/frontend/scenes/ErrorTrackingFingerprintsScene/ErrorTrackingIssueFingerprintsScene'),
+ ErrorTrackingFingerprint: () =>
+ import('../../products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene'),
FeatureFlagTemplates: () => import('../../products/feature_flags/frontend/FeatureFlagTemplatesScene'),
FeatureFlagsStaffTools: () => import('../../products/feature_flags/frontend/staff/FeatureFlagsStaffToolsScene'),
Game368Hedgehogs: () => import('../../products/games/368Hedgehogs/368Hedgehogs'),
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index a311c46b6f91..0d8f8309c56d 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -144,6 +144,7 @@ export const productRoutes: Record<string, [string, string]> = {
],
'/engineering-analytics/authors/:handle': ['EngineeringAnalyticsAuthor', 'engineeringAnalyticsAuthor'],
'/error_tracking': ['ErrorTracking', 'errorTracking'],
+ '/error_tracking/fingerprint/:fingerprint': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],
'/error_tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],
'/error_tracking/:id/fingerprints': ['ErrorTrackingIssueFingerprints', 'errorTrackingIssueFingerprints'],
'/error_tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],
@@ -615,6 +616,7 @@ export const productConfiguration: Record<string, any> = {
},
ErrorTrackingIssue: { projectBased: true, name: 'Error tracking issue', layout: 'app-raw' },
ErrorTrackingIssueFingerprints: { projectBased: true, name: 'Error tracking issue fingerprints' },
+ ErrorTrackingFingerprint: { projectBased: true, name: 'Error tracking fingerprint' },
FeatureFlagTemplates: { projectBased: true, name: 'Feature flag templates' },
FeatureFlagsStaffTools: { instanceLevel: true, name: 'Flags staff tools' },
Game368Hedgehogs: { name: '368Hedgehogs', projectBased: true, activityScope: 'Games' },
@@ -1073,9 +1075,18 @@ export const productUrls = {
searchQuery?: string
dateRange?: DateRange
filterGroup?: UniversalFiltersGroup
+ utm_source?: string
+ utm_campaign?: string
+ utm_medium?: string
} = {}
): string => combineUrl(`/error_tracking/${id}`, params).url,
errorTrackingIssueFingerprints: (id: string): string => `/error_tracking/${id}/fingerprints`,
+ errorTrackingFingerprint: (
+ fingerprint: string,
+ params: {
+ timestamp?: string
+ } = {}
+ ): string => combineUrl(`/error_tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,
errorTrackingAlert: (id: string): string => `/error_tracking/alerts/${id}`,
errorTrackingAlertNew: (templateId: string): string => `/error_tracking/alerts/new/${templateId}`,
experiment: (
@@ -1830,7 +1841,12 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
] as FileSystemIconColor,
href: urls.errorTracking(),
sceneKey: 'ErrorTracking',
- sceneKeys: ['ErrorTracking', 'ErrorTrackingIssue', 'ErrorTrackingIssueFingerprints'],
+ sceneKeys: [
+ 'ErrorTracking',
+ 'ErrorTrackingIssue',
+ 'ErrorTrackingIssueFingerprints',
+ 'ErrorTrackingFingerprint',
+ ],
},
{
path: 'Evaluations',
diff --git a/frontend/src/queries/nodes/DataTable/EventRowActions.tsx b/frontend/src/queries/nodes/DataTable/EventRowActions.tsx
index ba2ee63691d5..be5e84d78b2e 100644
--- a/frontend/src/queries/nodes/DataTable/EventRowActions.tsx
+++ b/frontend/src/queries/nodes/DataTable/EventRowActions.tsx
@@ -68,10 +68,10 @@ function EventRowActionsDropdown({ event }: { event: EventType }): JSX.Element {
fullWidth
sideIcon={<IconWarning />}
data-attr="events-table-issue-link"
- to={urls.errorTrackingIssue(
- event.properties.$exception_issue_id,
- event.properties.$exception_fingerprint
- )}
+ to={urls.errorTrackingIssue(event.properties.$exception_issue_id, {
+ fingerprint: event.properties.$exception_fingerprint,
+ timestamp: event.timestamp,
+ })}
>
Visit issue
</LemonButton>
diff --git a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
index df066d318ebc..56163ee94c81 100644
--- a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
+++ b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts
@@ -10,6 +10,15 @@ import {
SurveyEventName,
} from '~/types'
+// Deep link used in error tracking alert messages. Routes through the fingerprint redirect page
+// (/error_tracking/fingerprint/<fingerprint>) so links stay valid even after issues are merged.
+// Also used by the onboarding alert setup (onboardingErrorTrackingAlertsLogic) — keep the format
+// in one place so URL changes can't drift between the two surfaces.
+// encodeURLComponent mirrors JS encodeURIComponent, which leaves `(` and `)` unescaped — a `)` in a
+// fingerprint would close the surrounding markdown link `[text](url)` early, so encode them too.
+export const errorTrackingIssueLinkHogTemplate = (medium: string): string =>
+ `{project.url}/error_tracking/fingerprint/{replaceAll(replaceAll(encodeURLComponent(event.properties.fingerprint), '(', '%28'), ')', '%29')}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=${medium}`
+
export const HOG_FUNCTION_SUB_TEMPLATE_COMMON_PROPERTIES: Record<
HogFunctionSubTemplateIdType,
Pick<HogFunctionSubTemplateType, 'sub_template_id' | 'type' | 'context_id'> &
@@ -599,7 +608,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
description: 'Posts a message to Discord when an issue is created',
inputs: {
content: {
- value: '**🔴 {event.properties.name} created:** {event.properties.description}',
+ value: `**🔴 {event.properties.name} created:** {event.properties.description}\n\n[View in PostHog](${errorTrackingIssueLinkHogTemplate('discord')})`,
},
},
},
@@ -610,7 +619,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
description: 'Posts a message to Microsoft Teams when an issue is created',
inputs: {
text: {
- value: '**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog]({project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))',
+ value: `**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog](${errorTrackingIssueLinkHogTemplate('microsoft_teams')}))`,
},
},
},
@@ -641,7 +650,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
type: 'actions',
elements: [
{
- url: '{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack',
+ url: errorTrackingIssueLinkHogTemplate('slack'),
text: { text: 'View Issue', type: 'plain_text' },
type: 'button',
},
@@ -669,6 +678,9 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
posthog_issue_id: {
value: '{event.distinct_id}',
},
+ posthog_issue_url: {
+ value: errorTrackingIssueLinkHogTemplate('linear'),
+ },
},
},
{
@@ -686,6 +698,9 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
posthog_issue_id: {
value: '{event.distinct_id}',
},
+ posthog_issue_url: {
+ value: errorTrackingIssueLinkHogTemplate('github'),
+ },
},
},
{
@@ -703,6 +718,9 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
posthog_issue_id: {
value: '{event.distinct_id}',
},
+ posthog_issue_url: {
+ value: errorTrackingIssueLinkHogTemplate('gitlab'),
+ },
},
},
],
@@ -720,7 +738,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
description: 'Posts a message to Discord when an issue is reopened',
inputs: {
content: {
- value: '**🔄 {event.properties.name} reopened:** {event.properties.description}',
+ value: `**🔄 {event.properties.name} reopened:** {event.properties.description}\n\n[View in PostHog](${errorTrackingIssueLinkHogTemplate('discord')})`,
},
},
},
@@ -731,7 +749,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
description: 'Posts a message to Microsoft Teams when an issue is reopened',
inputs: {
text: {
- value: '**🔄 {event.properties.name} reopened:** {event.properties.description} (View in [PostHog]({project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))',
+ value: `**🔄 {event.properties.name} reopened:** {event.properties.description} (View in [PostHog](${errorTrackingIssueLinkHogTemplate('microsoft_teams')}))`,
},
},
},
@@ -762,7 +780,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
type: 'actions',
elements: [
{
- url: '{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack',
+ url: errorTrackingIssueLinkHogTemplate('slack'),
text: { text: 'View Issue', type: 'plain_text' },
type: 'button',
},
@@ -799,7 +817,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
**Project:** [{project.name}]({project.url})
**Alert:** [{source.name}]({source.url})
-[View issue]({project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)`,
+[View issue](${errorTrackingIssueLinkHogTemplate('discord')})`,
},
},
},
@@ -810,7 +828,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
description: 'Posts a message to Microsoft Teams when an issue is spiking',
inputs: {
text: {
- value: "**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog]({project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))",
+ value: `**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog](${errorTrackingIssueLinkHogTemplate('microsoft_teams')}))`,
},
},
},
@@ -846,7 +864,7 @@ export const HOG_FUNCTION_SUB_TEMPLATES: Record<HogFunctionSubTemplateIdType, Ho
type: 'actions',
elements: [
{
- url: '{project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack',
+ url: errorTrackingIssueLinkHogTemplate('slack'),
text: { text: 'View Issue', type: 'plain_text' },
type: 'button',
},
diff --git a/frontend/src/scenes/onboarding/legacy/error-tracking/onboardingErrorTrackingAlertsLogic.ts b/frontend/src/scenes/onboarding/legacy/error-tracking/onboardingErrorTrackingAlertsLogic.ts
index 944a3c4a0ea7..0cdd0bb2b2e7 100644
--- a/frontend/src/scenes/onboarding/legacy/error-tracking/onboardingErrorTrackingAlertsLogic.ts
+++ b/frontend/src/scenes/onboarding/legacy/error-tracking/onboardingErrorTrackingAlertsLogic.ts
@@ -7,6 +7,7 @@ import { lemonToast } from '@posthog/lemon-ui'
import api from 'lib/api'
import { integrationsLogic } from 'lib/integrations/integrationsLogic'
+import { errorTrackingIssueLinkHogTemplate } from 'scenes/hog-functions/sub-templates/sub-templates'
import { HogFunctionConfigurationType } from '~/types'
@@ -49,7 +50,7 @@ const DEFAULT_SLACK_INPUTS: Record<string, any> = {
type: 'actions',
elements: [
{
- url: '{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}',
+ url: errorTrackingIssueLinkHogTemplate('slack'),
text: { text: 'View Issue', type: 'plain_text' },
type: 'button',
},
@@ -242,12 +243,20 @@ export const onboardingErrorTrackingAlertsLogic = kea<onboardingErrorTrackingAle
if (values.integration === 'microsoft-teams') {
configuration.inputs = {
webhookUrl: { value: formValues.microsoftTeamsWebhookUrl },
- text: { value: '**🔴 {event.properties.name} created:** {event.properties.description}' },
+ text: {
+ value: `**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog](${errorTrackingIssueLinkHogTemplate(
+ 'microsoft_teams'
+ )}))`,
+ },
}
} else if (values.integration === 'discord') {
configuration.inputs = {
webhookUrl: { value: formValues.discordWebhookUrl },
- content: { value: '**🔴 {event.properties.name} created:** {event.properties.description}' },
+ content: {
+ value: `**🔴 {event.properties.name} created:** {event.properties.description}\n\n[View in PostHog](${errorTrackingIssueLinkHogTemplate(
+ 'discord'
+ )})`,
+ },
}
} else if (values.integration === 'slack') {
configuration.inputs = {
diff --git a/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx b/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
index 534cc8c89e69..93bc41145983 100644
--- a/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
+++ b/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
@@ -187,10 +187,10 @@ export function ItemEventMenu({ item }: ItemEventProps): JSX.Element {
? {
label: 'View issue in Error Tracking',
icon: <IconOpenInNew />,
- to: urls.errorTrackingIssue(
- item.data.properties.$exception_issue_id,
- item.data.properties.$exception_fingerprint
- ),
+ to: urls.errorTrackingIssue(item.data.properties.$exception_issue_id, {
+ fingerprint: item.data.properties.$exception_fingerprint,
+ timestamp: item.data.timestamp,
+ }),
targetBlank: true,
}
: null,
diff --git a/nodejs/src/cdp/templates/_destinations/github/github.template.test.ts b/nodejs/src/cdp/templates/_destinations/github/github.template.test.ts
new file mode 100644
index 000000000000..cc4233c9ab35
--- /dev/null
+++ b/nodejs/src/cdp/templates/_destinations/github/github.template.test.ts
@@ -0,0 +1,39 @@
+import { parseJSON } from '../../../../common/utils/json-parse'
+import { TemplateTester } from '../../test/test-helpers'
+import { template } from './github.template'
+
+describe('github template', () => {
+ const tester = new TemplateTester(template)
+
+ beforeEach(async () => {
+ await tester.beforeEach()
+ })
+
+ const baseInputs = {
+ github_installation: { access_token: 'token', account: { name: 'PostHog' } },
+ repository: 'posthog',
+ title: 'TypeError',
+ description: 'Something broke',
+ posthog_issue_id: 'issue-uuid',
+ }
+
+ it.each<[string, string | undefined, string]>([
+ [
+ 'links via the fingerprint URL when posthog_issue_url is provided',
+ 'https://us.posthog.com/project/1/error_tracking/fingerprint/fp%2F1',
+ 'https://us.posthog.com/project/1/error_tracking/fingerprint/fp%2F1',
+ ],
+ [
+ 'falls back to the issue-id URL for functions without posthog_issue_url',
+ undefined,
+ '/error_tracking/issue-uuid',
+ ],
+ ])('%s', async (_name, posthogIssueUrl, expectedLinkPart) => {
+ const response = await tester.invoke({ ...baseInputs, posthog_issue_url: posthogIssueUrl })
+
+ expect(response.error).toBeUndefined()
+ const body = parseJSON((response.invocation.queueParameters as any).body)
+ expect(body.body).toContain(`[View in PostHog](`)
+ expect(body.body).toContain(expectedLinkPart)
+ })
+})
diff --git a/nodejs/src/cdp/templates/_destinations/github/github.template.ts b/nodejs/src/cdp/templates/_destinations/github/github.template.ts
index 4c9e8c274c0f..8489681472d2 100644
--- a/nodejs/src/cdp/templates/_destinations/github/github.template.ts
+++ b/nodejs/src/cdp/templates/_destinations/github/github.template.ts
@@ -21,7 +21,10 @@ if (not repo) {
throw Error('Repository is required')
}
-let posthog_issue_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}'
+let posthog_issue_url := inputs.posthog_issue_url
+if (empty(posthog_issue_url)) {
+ posthog_issue_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}'
+}
let payload := {
'method': 'POST',
'headers': {
@@ -87,5 +90,15 @@ if (res.status < 200 or res.status >= 300) {
required: true,
default: '{event.properties.$exception_issue_id}',
},
+ {
+ key: 'posthog_issue_url',
+ type: 'string',
+ label: 'PostHog issue URL',
+ description:
+ 'Link back to the PostHog issue. When empty, a link is built from the PostHog issue ID instead.',
+ secret: false,
+ hidden: true,
+ required: false,
+ },
],
}
diff --git a/nodejs/src/cdp/templates/_destinations/gitlab/gitlab.template.ts b/nodejs/src/cdp/templates/_destinations/gitlab/gitlab.template.ts
index 97a8fe260f24..0a8929748cd0 100644
--- a/nodejs/src/cdp/templates/_destinations/gitlab/gitlab.template.ts
+++ b/nodejs/src/cdp/templates/_destinations/gitlab/gitlab.template.ts
@@ -10,7 +10,10 @@ export const template: HogFunctionTemplate = {
icon_url: '/static/services/gitlab.png',
category: ['Error tracking'],
code_language: 'hog',
- code: `let posthog_issue_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}'
+ code: `let posthog_issue_url := inputs.posthog_issue_url
+if (empty(posthog_issue_url)) {
+ posthog_issue_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}'
+}
let payload := {
'method': 'POST',
'headers': {
@@ -64,5 +67,15 @@ if (res.status < 200 or res.status >= 300) {
required: true,
default: '{event.properties.$exception_issue_id}',
},
+ {
+ key: 'posthog_issue_url',
+ type: 'string',
+ label: 'PostHog issue URL',
+ description:
+ 'Link back to the PostHog issue. When empty, a link is built from the PostHog issue ID instead.',
+ secret: false,
+ hidden: true,
+ required: false,
+ },
],
}
diff --git a/nodejs/src/cdp/templates/_destinations/linear/linear.template.test.ts b/nodejs/src/cdp/templates/_destinations/linear/linear.template.test.ts
new file mode 100644
index 000000000000..31fa9682ea06
--- /dev/null
+++ b/nodejs/src/cdp/templates/_destinations/linear/linear.template.test.ts
@@ -0,0 +1,44 @@
+import { TemplateTester } from '../../test/test-helpers'
+import { template } from './linear.template'
+
+describe('linear template', () => {
+ const tester = new TemplateTester(template)
+
+ beforeEach(async () => {
+ await tester.beforeEach()
+ })
+
+ const baseInputs = {
+ linear_workspace: { access_token: 'token' },
+ team: 'linear-team-id',
+ title: 'TypeError',
+ description: 'Something broke',
+ posthog_issue_id: 'issue-uuid',
+ }
+
+ it.each<[string, string | undefined, string]>([
+ [
+ 'attaches the fingerprint URL when posthog_issue_url is provided',
+ 'https://us.posthog.com/project/1/error_tracking/fingerprint/fp%2F1',
+ 'https://us.posthog.com/project/1/error_tracking/fingerprint/fp%2F1',
+ ],
+ [
+ 'falls back to the issue-id URL for functions without posthog_issue_url',
+ undefined,
+ '/error_tracking/issue-uuid',
+ ],
+ ])('%s', async (_name, posthogIssueUrl, expectedLinkPart) => {
+ const createResponse = await tester.invoke({ ...baseInputs, posthog_issue_url: posthogIssueUrl })
+ expect(createResponse.error).toBeUndefined()
+
+ const attachmentResponse = await tester.invokeFetchResponse(createResponse.invocation, {
+ status: 200,
+ body: { data: { issueCreate: { success: true, issue: { identifier: 'LIN-1' } } } },
+ })
+
+ expect(attachmentResponse.error).toBeUndefined()
+ const attachmentBody = (attachmentResponse.invocation.queueParameters as any).body
+ expect(attachmentBody).toContain('attachmentCreate')
+ expect(attachmentBody).toContain(expectedLinkPart)
+ })
+})
diff --git a/nodejs/src/cdp/templates/_destinations/linear/linear.template.ts b/nodejs/src/cdp/templates/_destinations/linear/linear.template.ts
index bd769e5fa535..a66ac177af60 100644
--- a/nodejs/src/cdp/templates/_destinations/linear/linear.template.ts
+++ b/nodejs/src/cdp/templates/_destinations/linear/linear.template.ts
@@ -33,7 +33,10 @@ if (issue_response.status != 200) {
let linear_issue_id := issue_response.body.data.issueCreate.issue.identifier;
-let attachment_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}';
+let attachment_url := inputs.posthog_issue_url;
+if (empty(attachment_url)) {
+ attachment_url := f'{project.url}/error_tracking/{inputs.posthog_issue_id}';
+}
let attachment_mutation := f'mutation AttachmentCreate \\{ attachmentCreate(input: \\{ issueId: "{linear_issue_id}", title: "PostHog issue", url: "{attachment_url}" }) \\{ success } }';
query(attachment_mutation);`,
@@ -84,5 +87,15 @@ query(attachment_mutation);`,
required: true,
default: '{event.properties.$exception_issue_id}',
},
+ {
+ key: 'posthog_issue_url',
+ type: 'string',
+ label: 'PostHog issue URL',
+ description:
+ 'Link back to the PostHog issue. When empty, a link is built from the PostHog issue ID instead.',
+ secret: false,
+ hidden: true,
+ required: false,
+ },
],
}
diff --git a/posthog/models/integration.py b/posthog/models/integration.py
index 0a676cdee0fc..0b6f3cdf6638 100644
--- a/posthog/models/integration.py
+++ b/posthog/models/integration.py
@@ -2505,7 +2505,7 @@ class LinearIntegration:
teams = dot_get(body, "data.teams.nodes")
return teams
- def create_issue(self, team_id: str, posthog_issue_id: str, config: dict[str, str]) -> dict[str, str]:
+ def create_issue(self, attachment_url: str, config: dict[str, str]) -> dict[str, str]:
title: str = config.pop("title")
description: str = config.pop("description")
linear_team_id = config.pop("team_id")
@@ -2524,7 +2524,6 @@ class LinearIntegration:
)
linear_issue_id = dot_get(body, "data.issueCreate.issue.identifier")
- attachment_url = f"{settings.SITE_URL}/project/{team_id}/error_tracking/{posthog_issue_id}"
link_attachment_query = """
mutation AttachmentCreate($issueId: String!, $title: String!, $url: String!) {
attachmentCreate(input: { issueId: $issueId, title: $title, url: $url }) {
diff --git a/posthog/models/test/test_integration_model.py b/posthog/models/test/test_integration_model.py
index 7d1351e26ef6..c6b770287274 100644
--- a/posthog/models/test/test_integration_model.py
+++ b/posthog/models/test/test_integration_model.py
@@ -159,9 +159,9 @@ class TestLinearIntegrationModel(BaseTest):
{"data": {"attachmentCreate": {"success": True}}},
],
) as mock_query:
+ attachment_url = f'https://us.posthog.com/project/{self.team.id}/error_tracking/issue-id" }} mutation {{'
result = linear.create_issue(
- str(self.team.id),
- 'issue-id" } mutation {',
+ attachment_url,
{
"team_id": 'team-id" } mutation {',
"title": 'Title "quoted"',
diff --git a/posthog/session_recordings/session_recording_external_reference_api.py b/posthog/session_recordings/session_recording_external_reference_api.py
index 399ef3de31cc..0e521332b3c7 100644
--- a/posthog/session_recordings/session_recording_external_reference_api.py
+++ b/posthog/session_recordings/session_recording_external_reference_api.py
@@ -156,9 +156,7 @@ class SessionRecordingExternalReferenceSerializer(serializers.ModelSerializer):
if integration.kind == Integration.IntegrationKind.LINEAR:
title = config.get("title", "")
config["description"] = f"{config.get('description', '')}\n\nPostHog recording: {recording_url}"
- external_context = LinearIntegration(integration).create_issue(
- team.pk, session_recording.session_id, config
- )
+ external_context = LinearIntegration(integration).create_issue(recording_url, config)
external_context["title"] = title
elif integration.kind == Integration.IntegrationKind.GITHUB:
title = config.get("title", "")
diff --git a/posthog/tasks/email.py b/posthog/tasks/email.py
index 699c9f87c8d9..ecba0788a65a 100644
--- a/posthog/tasks/email.py
+++ b/posthog/tasks/email.py
@@ -1305,6 +1305,7 @@ def send_error_tracking_issue_assigned(assignment_id: str | uuid.UUID, assigner_
"assignment": assignment,
"team": team,
"site_url": settings.SITE_URL,
+ "issue_url": error_tracking_api.get_issue_permalink(team_id=team.id, issue_id=assignment.issue.id),
},
)
for membership in memberships_to_email:
diff --git a/posthog/templates/email/error_tracking_issue_assigned.html b/posthog/templates/email/error_tracking_issue_assigned.html
index c7019710f14c..833e4ae655e0 100644
--- a/posthog/templates/email/error_tracking_issue_assigned.html
+++ b/posthog/templates/email/error_tracking_issue_assigned.html
@@ -17,12 +17,12 @@
<b>Status:</b> {{ assignment.issue.status }}
</p>
<div class="mb mt text-center">
- <a class="button" href="{{ site_url }}/project/{{ team.id }}/error_tracking/{{ assignment.issue.id }}">View issue details</a>
+ <a class="button" href="{{ issue_url }}">View issue details</a>
</div>
<div class="mt">
<p>
If the button above doesn't work, paste this link into your browser:<br />
- <a href="{{ site_url }}/project/{{ team.id }}/error_tracking/{{ assignment.issue.id }}">{{ site_url }}/project/{{ team.id }}/error_tracking/{{ assignment.issue.id }}</a>
+ <a href="{{ issue_url }}">{{ issue_url }}</a>
</p>
</div>
{% endblock %}
diff --git a/products/error_tracking/backend/facade/api.py b/products/error_tracking/backend/facade/api.py
index 8f2e2caf01e5..821269297cf6 100644
--- a/products/error_tracking/backend/facade/api.py
+++ b/products/error_tracking/backend/facade/api.py
@@ -555,6 +555,18 @@ def get_fingerprint(team_id: int, fingerprint_id: UUID) -> contracts.ErrorTracki
return _to_fingerprint(fingerprint)
+def get_fingerprint_by_value(team_id: int, fingerprint: str) -> contracts.ErrorTrackingFingerprint | None:
+ resolved = logic.get_fingerprint_by_value(team_id=team_id, fingerprint=fingerprint)
+ if resolved is None:
+ return None
+ return _to_fingerprint(resolved)
+
+
+def get_issue_permalink(team_id: int, issue_id: UUID) -> str:
+ """Absolute, merge-stable link to an issue for durable surfaces (emails, external tools)."""
+ return logic.get_issue_permalink_by_fingerprint(team_id=team_id, issue_id=issue_id)
+
+
def list_external_references(team_id: int) -> list[contracts.ErrorTrackingExternalReference]:
references = logic.list_external_references(team_id=team_id)
return [_to_external_reference(reference) for reference in references]
diff --git a/products/error_tracking/backend/logic/__init__.py b/products/error_tracking/backend/logic/__init__.py
index e0bf22e2200f..4739ac031946 100644
--- a/products/error_tracking/backend/logic/__init__.py
+++ b/products/error_tracking/backend/logic/__init__.py
@@ -1,7 +1,9 @@
from datetime import datetime
from typing import Any, TypeVar, cast
+from urllib.parse import quote
from uuid import UUID
+from django.conf import settings
from django.db.models import Count, Q, QuerySet
from posthog.models.integration import (
@@ -211,6 +213,38 @@ def get_fingerprint(team_id: int, fingerprint_id: UUID) -> ErrorTrackingIssueFin
return ErrorTrackingIssueFingerprintV2.objects.filter(team_id=team_id, id=fingerprint_id).first()
+def get_fingerprint_by_value(team_id: int, fingerprint: str) -> ErrorTrackingIssueFingerprintV2 | None:
+ return ErrorTrackingIssueFingerprintV2.objects.filter(team_id=team_id, fingerprint=fingerprint).first()
+
+
+def get_canonical_fingerprint(team_id: int, issue_id: UUID) -> str | None:
+ """Oldest fingerprint of an issue — the stable one to link by, since merges keep it."""
+ return (
+ ErrorTrackingIssueFingerprintV2.objects.filter(team_id=team_id, issue_id=issue_id)
+ .order_by("created_at")
+ .values_list("fingerprint", flat=True)
+ .first()
+ )
+
+
+def build_issue_permalink_path(*, project_id: int, issue_id: UUID | str, fingerprint: str | None) -> str:
+ """Relative app path to an issue for durable surfaces (issue trackers, emails, notifications).
+
+ Prefers the fingerprint redirect URL, which survives issue merges; falls back to the
+ plain issue URL when the issue has no fingerprints.
+ """
+ if fingerprint is None:
+ return f"/project/{project_id}/error_tracking/{issue_id}"
+ return f"/project/{project_id}/error_tracking/fingerprint/{quote(fingerprint, safe='')}"
+
+
+def get_issue_permalink_by_fingerprint(team_id: int, issue_id: UUID) -> str:
+ fingerprint = get_canonical_fingerprint(team_id=team_id, issue_id=issue_id)
+ return settings.SITE_URL + build_issue_permalink_path(
+ project_id=team_id, issue_id=issue_id, fingerprint=fingerprint
+ )
+
+
def list_external_references(team_id: int) -> QuerySet[ErrorTrackingExternalReference]:
return ErrorTrackingExternalReference.objects.select_related("integration").filter(issue__team_id=team_id)
@@ -242,7 +276,8 @@ def create_external_reference(
elif integration.kind == Integration.IntegrationKind.GITLAB:
external_context = GitLabIntegration(integration).create_issue(provider_config)
elif integration.kind == Integration.IntegrationKind.LINEAR:
- external_context = LinearIntegration(integration).create_issue(str(team_id), issue.id, provider_config)
+ attachment_url = get_issue_permalink_by_fingerprint(team_id=team_id, issue_id=issue.id)
+ external_context = LinearIntegration(integration).create_issue(attachment_url, provider_config)
elif integration.kind == Integration.IntegrationKind.JIRA:
external_context = JiraIntegration(integration).create_issue(provider_config)
else:
diff --git a/products/error_tracking/backend/notifications.py b/products/error_tracking/backend/notifications.py
index 19b4fdb632c4..6d958b855f7f 100644
--- a/products/error_tracking/backend/notifications.py
+++ b/products/error_tracking/backend/notifications.py
@@ -4,6 +4,7 @@ import structlog
from posthog.models import User
+from products.error_tracking.backend.logic import build_issue_permalink_path, get_canonical_fingerprint
from products.error_tracking.backend.models import ErrorTrackingIssueAssignment
from products.notifications.backend.facade.api import (
NotificationData,
@@ -48,7 +49,8 @@ def dispatch_issue_assigned_realtime(
issue = assignment.issue
title = f"{assigner.first_name or assigner.email} assigned an issue to you"[:100]
body = (issue.name or "")[:200]
- source_url = f"/project/{team.project_id}/error_tracking/{issue.id}"
+ fingerprint = get_canonical_fingerprint(team_id=assignment.team_id, issue_id=issue.id)
+ source_url = build_issue_permalink_path(project_id=team.project_id, issue_id=issue.id, fingerprint=fingerprint)
if assignee["type"] == "user":
if int(assignee["id"]) == assigner.id:
diff --git a/products/error_tracking/backend/presentation/views/fingerprints.py b/products/error_tracking/backend/presentation/views/fingerprints.py
index d53243ead48f..cf2ff502ed98 100644
--- a/products/error_tracking/backend/presentation/views/fingerprints.py
+++ b/products/error_tracking/backend/presentation/views/fingerprints.py
@@ -1,26 +1,27 @@
from uuid import UUID
from drf_spectacular.utils import OpenApiParameter, OpenApiTypes, extend_schema
-from rest_framework import serializers, viewsets
+from rest_framework import request, serializers, viewsets
+from rest_framework.decorators import action
from rest_framework.exceptions import NotFound, ValidationError
from rest_framework.response import Response
from posthog.api.forbid_destroy_model import ForbidDestroyModel
from posthog.api.routing import TeamAndOrgViewSetMixin
-from products.error_tracking.backend.facade.api import get_fingerprint, list_fingerprints
+from products.error_tracking.backend.facade.api import get_fingerprint, get_fingerprint_by_value, list_fingerprints
class ErrorTrackingFingerprintSerializer(serializers.Serializer):
- id = serializers.UUIDField(read_only=True)
- fingerprint = serializers.CharField(read_only=True)
- issue_id = serializers.UUIDField(read_only=True)
- created_at = serializers.DateTimeField(read_only=True)
+ id = serializers.UUIDField(read_only=True, help_text="Unique ID of the fingerprint record.")
+ fingerprint = serializers.CharField(read_only=True, help_text="The fingerprint value.")
+ issue_id = serializers.UUIDField(read_only=True, help_text="ID of the issue this fingerprint currently belongs to.")
+ created_at = serializers.DateTimeField(read_only=True, help_text="When the fingerprint record was created.")
class ErrorTrackingFingerprintViewSet(TeamAndOrgViewSetMixin, ForbidDestroyModel, viewsets.GenericViewSet):
scope_object = "error_tracking"
- scope_object_read_actions = ["list", "retrieve"]
+ scope_object_read_actions = ["list", "retrieve", "resolve"]
scope_object_write_actions: list[str] = []
serializer_class = ErrorTrackingFingerprintSerializer
@@ -65,3 +66,28 @@ class ErrorTrackingFingerprintViewSet(TeamAndOrgViewSetMixin, ForbidDestroyModel
serializer = self.get_serializer(fingerprint)
return Response(serializer.data)
+
+ @extend_schema(
+ parameters=[
+ OpenApiParameter(
+ name="fingerprint",
+ type=OpenApiTypes.STR,
+ location=OpenApiParameter.QUERY,
+ required=True,
+ description="Fingerprint value to resolve to the issue it currently belongs to.",
+ )
+ ],
+ responses={200: ErrorTrackingFingerprintSerializer},
+ )
+ @action(detail=False, methods=["GET"], pagination_class=None)
+ def resolve(self, request: request.Request, *args: object, **kwargs: object) -> Response:
+ fingerprint_value = self.request.GET.get("fingerprint")
+ if not fingerprint_value:
+ raise ValidationError("fingerprint query parameter is required")
+
+ fingerprint = get_fingerprint_by_value(team_id=self.team.id, fingerprint=fingerprint_value)
+ if fingerprint is None:
+ raise NotFound("Fingerprint not found")
+
+ serializer = self.get_serializer(fingerprint)
+ return Response(serializer.data)
diff --git a/products/error_tracking/backend/test/test_facade_api.py b/products/error_tracking/backend/test/test_facade_api.py
index 6029f094a6d2..b6d11dc35fa5 100644
--- a/products/error_tracking/backend/test/test_facade_api.py
+++ b/products/error_tracking/backend/test/test_facade_api.py
@@ -3,6 +3,7 @@ from datetime import timedelta
from posthog.test.base import BaseTest
from unittest.mock import patch
+from django.test import override_settings
from django.utils.timezone import now
from parameterized import parameterized
@@ -85,6 +86,59 @@ class TestErrorTrackingFacadeAPI(BaseTest):
)
mock_list_teams.assert_called_once_with()
+ @override_settings(LINEAR_APP_CLIENT_ID="linear-client-id", LINEAR_APP_CLIENT_SECRET="linear-client-secret")
+ @patch("products.error_tracking.backend.logic.LinearIntegration.create_issue")
+ @patch("products.error_tracking.backend.logic.LinearIntegration.list_teams")
+ def test_create_external_reference_links_linear_attachment_via_fingerprint(
+ self, mock_list_teams, mock_create_issue
+ ):
+ mock_list_teams.return_value = [{"id": "linear-team-id", "name": "Engineering"}]
+ mock_create_issue.return_value = {"id": "LIN-1"}
+ issue = ErrorTrackingIssue.objects.create(team=self.team, name="Checkout TypeError")
+ ErrorTrackingIssueFingerprintV2.objects.create(team=self.team, issue=issue, fingerprint="fp/with#chars")
+ integration = Integration.objects.create(
+ team=self.team,
+ kind=Integration.IntegrationKind.LINEAR.value,
+ config={"data": {"viewer": {"organization": {"urlKey": "acme", "name": "Acme"}}}},
+ sensitive_config={"access_token": "access-token"},
+ )
+
+ api.create_external_reference(
+ team_id=self.team.id,
+ issue_id=issue.id,
+ integration_id=integration.id,
+ config={"team_id": "linear-team-id", "title": "Checkout TypeError", "description": ""},
+ )
+
+ attachment_url = mock_create_issue.call_args.args[0]
+ assert attachment_url.endswith(f"/project/{self.team.id}/error_tracking/fingerprint/fp%2Fwith%23chars")
+
+ @override_settings(LINEAR_APP_CLIENT_ID="linear-client-id", LINEAR_APP_CLIENT_SECRET="linear-client-secret")
+ @patch("products.error_tracking.backend.logic.LinearIntegration.create_issue")
+ @patch("products.error_tracking.backend.logic.LinearIntegration.list_teams")
+ def test_create_external_reference_falls_back_to_issue_url_without_fingerprints(
+ self, mock_list_teams, mock_create_issue
+ ):
+ mock_list_teams.return_value = [{"id": "linear-team-id", "name": "Engineering"}]
+ mock_create_issue.return_value = {"id": "LIN-1"}
+ issue = ErrorTrackingIssue.objects.create(team=self.team, name="No fingerprints yet")
+ integration = Integration.objects.create(
+ team=self.team,
+ kind=Integration.IntegrationKind.LINEAR.value,
+ config={"data": {"viewer": {"organization": {"urlKey": "acme", "name": "Acme"}}}},
+ sensitive_config={"access_token": "access-token"},
+ )
+
+ api.create_external_reference(
+ team_id=self.team.id,
+ issue_id=issue.id,
+ integration_id=integration.id,
+ config={"team_id": "linear-team-id", "title": "No fingerprints yet", "description": ""},
+ )
+
+ attachment_url = mock_create_issue.call_args.args[0]
+ assert attachment_url.endswith(f"/project/{self.team.id}/error_tracking/{issue.id}")
+
def test_issue_exists(self):
assert api.issue_exists(team_id=self.team.id) is False
diff --git a/products/error_tracking/backend/tests/api/test_error_tracking_api.py b/products/error_tracking/backend/tests/api/test_error_tracking_api.py
index cf4fb9f2bce0..e4f6f50aecc3 100644
--- a/products/error_tracking/backend/tests/api/test_error_tracking_api.py
+++ b/products/error_tracking/backend/tests/api/test_error_tracking_api.py
@@ -12,7 +12,7 @@ from botocore.config import Config
from parameterized import parameterized
from rest_framework import status
-from posthog.models import User
+from posthog.models import Team, User
from posthog.models.integration import Integration
from posthog.models.utils import uuid7
from posthog.settings import (
@@ -324,6 +324,49 @@ class TestErrorTracking(APIBaseTest):
assert response.json()["type"] == "validation_error"
assert response.json()["code"] == "required"
+ def test_fingerprint_resolve_returns_issue(self):
+ fingerprint = "$uper/strange#fingerprint"
+ issue = self.create_issue(fingerprints=[fingerprint])
+
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/error_tracking/fingerprints/resolve",
+ data={"fingerprint": fingerprint},
+ )
+
+ assert response.status_code == 200, response.json()
+ assert response.json()["issue_id"] == str(issue.id)
+ assert response.json()["fingerprint"] == fingerprint
+
+ @parameterized.expand(
+ [
+ ("missing_param", {}, 400),
+ ("unknown_fingerprint", {"fingerprint": "does_not_exist"}, 404),
+ ]
+ )
+ def test_fingerprint_resolve_error_cases(self, _name, params, expected_status):
+ self.create_issue(fingerprints=["fingerprint_one"])
+
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/error_tracking/fingerprints/resolve",
+ data=params,
+ )
+
+ assert response.status_code == expected_status
+
+ def test_fingerprint_resolve_is_scoped_to_team(self):
+ other_team = Team.objects.create(organization=self.organization)
+ other_issue = ErrorTrackingIssue.objects.create(team=other_team)
+ ErrorTrackingIssueFingerprintV2.objects.create(
+ team=other_team, issue=other_issue, fingerprint="other_team_fingerprint"
+ )
+
+ response = self.client.get(
+ f"/api/environments/{self.team.id}/error_tracking/fingerprints/resolve",
+ data={"fingerprint": "other_team_fingerprint"},
+ )
+
+ assert response.status_code == 404
+
def test_can_start_symbol_set_upload(self) -> None:
chunk_id = uuid7()
response = self.client.post(
diff --git a/products/error_tracking/backend/weekly_digest.py b/products/error_tracking/backend/weekly_digest.py
index 44b4494ae66e..bd09d0b0d066 100644
--- a/products/error_tracking/backend/weekly_digest.py
+++ b/products/error_tracking/backend/weekly_digest.py
@@ -320,12 +320,23 @@ def get_new_issues_for_team(team: Team, issue_rows: list | None = None) -> list[
def _build_issues_list(results: list, issues_by_id: dict, team: Team) -> list[dict]:
"""Build issue dicts with sparkline from query results containing issue_id, occurrence_count, daily_counts."""
+ from products.error_tracking.backend.logic import build_issue_permalink_path, list_first_fingerprints
+
+ issue_ids = [issue_id for issue_id, _, _ in results if issue_id]
+ first_fingerprint_by_issue_id = {
+ str(fingerprint.issue_id): fingerprint.fingerprint
+ for fingerprint in list_first_fingerprints(team_id=team.pk, issue_ids=issue_ids)
+ }
+
issues = []
for issue_id, occurrence_count, daily_counts in results:
if not issue_id:
continue
issue = issues_by_id.get(str(issue_id))
sparkline = _daily_counts_to_sparkline(daily_counts)
+ permalink_path = build_issue_permalink_path(
+ project_id=team.pk, issue_id=issue_id, fingerprint=first_fingerprint_by_issue_id.get(str(issue_id))
+ )
issues.append(
{
"id": issue_id,
@@ -333,7 +344,7 @@ def _build_issues_list(results: list, issues_by_id: dict, team: Team) -> list[di
"description": issue.description if issue else None,
"occurrence_count": occurrence_count,
"sparkline": sparkline,
- "url": f"{settings.SITE_URL}/project/{team.pk}/error_tracking/{issue_id}?utm_source=error_tracking_weekly_digest",
+ "url": f"{settings.SITE_URL}{permalink_path}?utm_source=error_tracking_weekly_digest",
}
)
return issues
diff --git a/products/error_tracking/frontend/components/ExternalReferences.tsx b/products/error_tracking/frontend/components/ExternalReferences.tsx
index 9f8da88d6f0a..04ec8190e1dd 100644
--- a/products/error_tracking/frontend/components/ExternalReferences.tsx
+++ b/products/error_tracking/frontend/components/ExternalReferences.tsx
@@ -4,6 +4,7 @@ import posthog from 'posthog-js'
import { IconPlus } from '@posthog/icons'
import { LemonDialog, LemonInput, LemonTextArea, Link } from '@posthog/lemon-ui'
+import { ErrorTrackingFingerprint } from 'lib/components/Errors/types'
import { GitHubRepositorySelectField } from 'lib/integrations/GitHubIntegrationHelpers'
import { integrationsLogic } from 'lib/integrations/integrationsLogic'
import { JiraProjectSelectField } from 'lib/integrations/JiraIntegrationHelpers'
@@ -19,6 +20,7 @@ import {
DropdownMenuTrigger,
} from 'lib/ui/DropdownMenu/DropdownMenu'
import { WrappingLoadingSkeleton } from 'lib/ui/WrappingLoadingSkeleton/WrappingLoadingSkeleton'
+import { addProjectIdIfMissing } from 'lib/utils/kea-router'
import { urls } from 'scenes/urls'
import { ErrorTrackingExternalReference, ErrorTrackingRelationalIssue } from '~/queries/schema/schema-general'
@@ -36,7 +38,12 @@ const POSTHOG_HTML_LINE_BREAKS = '\n<br/>\n<br/>\n'
const EXTERNAL_REFERENCE_FORM_BUILDERS: Record<
ErrorTrackingIntegrationKind,
- (issue: ErrorTrackingRelationalIssue, integration: ErrorTrackingIntegration, onSubmit: onSubmitFormType) => void
+ (
+ issue: ErrorTrackingRelationalIssue,
+ issueUrl: string,
+ integration: ErrorTrackingIntegration,
+ onSubmit: onSubmitFormType
+ ) => void
> = {
github: createGitHubIssueForm,
gitlab: createGitLabIssueForm,
@@ -45,7 +52,7 @@ const EXTERNAL_REFERENCE_FORM_BUILDERS: Record<
}
export const ExternalReferences = (): JSX.Element | null => {
- const { issue, issueLoading } = useValues(errorTrackingIssueSceneLogic)
+ const { issue, issueLoading, issueFingerprints } = useValues(errorTrackingIssueSceneLogic)
const { createExternalReference } = useActions(errorTrackingIssueSceneLogic)
const { getIntegrationsByKind, integrationsLoading } = useValues(integrationsLogic)
@@ -67,7 +74,12 @@ export const ExternalReferences = (): JSX.Element | null => {
const buildForm = EXTERNAL_REFERENCE_FORM_BUILDERS[integration.kind as ErrorTrackingIntegrationKind]
if (buildForm) {
- buildForm(issue, integration as ErrorTrackingIntegration, createExternalReference)
+ buildForm(
+ issue,
+ getIssueUrl(issueFingerprints),
+ integration as ErrorTrackingIntegration,
+ createExternalReference
+ )
}
}
@@ -142,20 +154,28 @@ function SetupIntegrationsButton(): JSX.Element {
)
}
-function getIssueUrl(): string {
+// Link through the fingerprint redirect page when possible — it resolves to whatever issue the
+// fingerprint belongs to at click time, so external issue links survive merges. Fingerprints are
+// listed oldest-first; the oldest one is the stable, canonical one for an issue.
+function getIssueUrl(fingerprints: ErrorTrackingFingerprint[]): string {
+ const canonicalFingerprint = fingerprints[0]?.fingerprint
+ if (canonicalFingerprint) {
+ return `${window.location.origin}${addProjectIdIfMissing(urls.errorTrackingFingerprint(canonicalFingerprint))}`
+ }
return `${window.location.origin}${window.location.pathname}`
}
-function getIssueMarkdownBody(issue: ErrorTrackingRelationalIssue): string {
- return `${issue.description ?? ''}${POSTHOG_HTML_LINE_BREAKS}**PostHog issue:** ${getIssueUrl()}`
+function getIssueMarkdownBody(issue: ErrorTrackingRelationalIssue, issueUrl: string): string {
+ return `${issue.description ?? ''}${POSTHOG_HTML_LINE_BREAKS}**PostHog issue:** ${issueUrl}`
}
-function getIssuePlaintextBody(issue: ErrorTrackingRelationalIssue): string {
- return `${issue.description ?? ''}\n\nPostHog issue: ${getIssueUrl()}`
+function getIssuePlaintextBody(issue: ErrorTrackingRelationalIssue, issueUrl: string): string {
+ return `${issue.description ?? ''}\n\nPostHog issue: ${issueUrl}`
}
function createGitHubIssueForm(
issue: ErrorTrackingRelationalIssue,
+ issueUrl: string,
integration: ErrorTrackingIntegration,
onSubmit: onSubmitFormType
): void {
@@ -164,7 +184,7 @@ function createGitHubIssueForm(
shouldAwaitSubmit: true,
initialValues: {
title: issue.name,
- body: getIssueMarkdownBody(issue),
+ body: getIssueMarkdownBody(issue, issueUrl),
integrationId: integration.id,
repositories: [],
},
@@ -192,6 +212,7 @@ function createGitHubIssueForm(
function createGitLabIssueForm(
issue: ErrorTrackingRelationalIssue,
+ issueUrl: string,
integration: ErrorTrackingIntegration,
onSubmit: onSubmitFormType
): void {
@@ -200,7 +221,7 @@ function createGitLabIssueForm(
shouldAwaitSubmit: true,
initialValues: {
title: issue.name,
- body: getIssueMarkdownBody(issue),
+ body: getIssueMarkdownBody(issue, issueUrl),
integrationId: integration.id,
},
content: (
@@ -224,6 +245,7 @@ function createGitLabIssueForm(
function createLinearIssueForm(
issue: ErrorTrackingRelationalIssue,
+ _issueUrl: string,
integration: ErrorTrackingIntegration,
onSubmit: onSubmitFormType
): void {
@@ -259,6 +281,7 @@ function createLinearIssueForm(
function createJiraIssueForm(
issue: ErrorTrackingRelationalIssue,
+ issueUrl: string,
integration: ErrorTrackingIntegration,
onSubmit: onSubmitFormType
): void {
@@ -267,7 +290,7 @@ function createJiraIssueForm(
shouldAwaitSubmit: true,
initialValues: {
title: issue.name,
- description: getIssuePlaintextBody(issue),
+ description: getIssuePlaintextBody(issue, issueUrl),
integrationId: integration.id,
projectKeys: [],
},
diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.ts
index fe2ff85a073c..73b4470c3c15 100644
--- a/products/error_tracking/frontend/generated/api.schemas.ts
+++ b/products/error_tracking/frontend/generated/api.schemas.ts
@@ -484,9 +484,13 @@ export interface PaginatedErrorTrackingExternalReferenceResultListApi {
}
export interface ErrorTrackingFingerprintApi {
+ /** Unique ID of the fingerprint record. */
readonly id: string
+ /** The fingerprint value. */
readonly fingerprint: string
+ /** ID of the issue this fingerprint currently belongs to. */
readonly issue_id: string
+ /** When the fingerprint record was created. */
readonly created_at: string
}
@@ -1787,6 +1791,13 @@ export type ErrorTrackingFingerprintsListParams = {
offset?: number
}
+export type ErrorTrackingFingerprintsResolveRetrieveParams = {
+ /**
+ * Fingerprint value to resolve to the issue it currently belongs to.
+ */
+ fingerprint: string
+}
+
export type ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {
/**
* Code snippet to search for in repository files.
diff --git a/products/error_tracking/frontend/generated/api.ts b/products/error_tracking/frontend/generated/api.ts
index 95a0f0b23f9f..927285553696 100644
--- a/products/error_tracking/frontend/generated/api.ts
+++ b/products/error_tracking/frontend/generated/api.ts
@@ -21,6 +21,7 @@ import type {
ErrorTrackingExternalReferencesListParams,
ErrorTrackingFingerprintApi,
ErrorTrackingFingerprintsListParams,
+ ErrorTrackingFingerprintsResolveRetrieveParams,
ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams,
ErrorTrackingGitProviderFileLinksResolveGitlabRetrieveParams,
ErrorTrackingGroupingRuleApi,
@@ -520,6 +521,36 @@ export const errorTrackingFingerprintsDestroy = async (
})
}
+export const getErrorTrackingFingerprintsResolveRetrieveUrl = (
+ projectId: string,
+ params: ErrorTrackingFingerprintsResolveRetrieveParams
+) => {
+ const normalizedParams = new URLSearchParams()
+
+ Object.entries(params || {}).forEach(([key, value]) => {
+ if (value !== undefined) {
+ normalizedParams.append(key, value === null ? 'null' : String(value))
+ }
+ })
+
+ const stringifiedParams = normalizedParams.toString()
+
+ return stringifiedParams.length > 0
+ ? `/api/projects/${projectId}/error_tracking/fingerprints/resolve/?${stringifiedParams}`
+ : `/api/projects/${projectId}/error_tracking/fingerprints/resolve/`
+}
+
+export const errorTrackingFingerprintsResolveRetrieve = async (
+ projectId: string,
+ params: ErrorTrackingFingerprintsResolveRetrieveParams,
+ options?: RequestInit
+): Promise<ErrorTrackingFingerprintApi> => {
+ return apiMutator<ErrorTrackingFingerprintApi>(getErrorTrackingFingerprintsResolveRetrieveUrl(projectId, params), {
+ ...options,
+ method: 'GET',
+ })
+}
+
export const getErrorTrackingGitProviderFileLinksResolveGithubRetrieveUrl = (
projectId: string,
params: ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx
new file mode 100644
index 000000000000..a9e21528e212
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene.tsx
@@ -0,0 +1,57 @@
+import { useValues } from 'kea'
+import { router } from 'kea-router'
+
+import { NotFound } from 'lib/components/NotFound'
+import { Spinner, SpinnerOverlay } from 'lib/lemon-ui/Spinner'
+import { SceneExport } from 'scenes/sceneTypes'
+
+import {
+ ErrorTrackingFingerprintSceneLogicProps,
+ decodeFingerprintSegment,
+ errorTrackingFingerprintSceneLogic,
+ rawFingerprintPathSegment,
+} from './errorTrackingFingerprintSceneLogic'
+
+export const scene: SceneExport<ErrorTrackingFingerprintSceneLogicProps> = {
+ component: ErrorTrackingFingerprintScene,
+ logic: errorTrackingFingerprintSceneLogic,
+ paramsToProps: ({ params: { fingerprint }, searchParams: { timestamp } }) => ({
+ // Decode from the raw pathname, not the router's already-decodeURI'd `fingerprint` param —
+ // decoding that a second time crashes on a literal `%` and mangles `%XX` fingerprints.
+ fingerprint: decodeFingerprintSegment(
+ rawFingerprintPathSegment(router.values.location.pathname) ?? fingerprint
+ ),
+ timestamp,
+ }),
+}
+
+export function ErrorTrackingFingerprintScene(): JSX.Element {
+ const { notFound, retries } = useValues(errorTrackingFingerprintSceneLogic)
+
+ if (notFound) {
+ return (
+ <NotFound
+ object="issue"
+ caption="We couldn't find this issue. If the error was captured very recently, it may still be processing, so try refreshing in a moment."
+ />
+ )
+ }
+
+ // First lookup in flight: just a spinner. Only once a lookup has missed do we explain the wait,
+ // since a recently captured error can still be working through ingestion. The scene redirects to
+ // the issue as soon as it resolves.
+ if (retries === 0) {
+ return <SpinnerOverlay sceneLevel />
+ }
+
+ return (
+ <div className="flex flex-col items-center justify-center gap-3 text-center h-full py-16">
+ <Spinner className="text-3xl" />
+ <h2 className="mb-0">Still looking for this issue</h2>
+ <p className="text-secondary max-w-md mb-0">
+ We couldn't find it yet, so we're still looking. If the error was captured recently, it can take a few
+ moments to finish processing, and this page opens automatically once it's ready.
+ </p>
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts
new file mode 100644
index 000000000000..a4224b23f8a2
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.test.ts
@@ -0,0 +1,51 @@
+import { router } from 'kea-router'
+import { expectLogic } from 'kea-test-utils'
+
+import { useMocks } from '~/mocks/jest'
+import { initKeaTests } from '~/test/init'
+
+import { errorTrackingFingerprintSceneLogic, rawFingerprintPathSegment } from './errorTrackingFingerprintSceneLogic'
+
+describe('errorTrackingFingerprintSceneLogic', () => {
+ let logic: ReturnType<typeof errorTrackingFingerprintSceneLogic.build>
+
+ beforeEach(() => {
+ useMocks({
+ get: {
+ '/api/projects/:team_id/error_tracking/fingerprints/resolve/': {
+ id: 'fp-record-1',
+ fingerprint: 'fp-1',
+ issue_id: 'issue-1',
+ created_at: '2026-01-01T00:00:00Z',
+ },
+ },
+ })
+ initKeaTests()
+ })
+
+ afterEach(() => logic?.unmount())
+
+ it.each<[string, string | undefined, Record<string, string>]>([
+ [
+ 'keeps the timestamp from the alert link',
+ '2026-02-02T00:00:00Z',
+ { fingerprint: 'fp-1', timestamp: '2026-02-02T00:00:00Z' },
+ ],
+ ['omits the timestamp when the link carried none', undefined, { fingerprint: 'fp-1' }],
+ ])('redirects to the resolved issue and %s', async (_name, timestamp, expectedParams) => {
+ logic = errorTrackingFingerprintSceneLogic({ fingerprint: 'fp-1', timestamp })
+ logic.mount()
+
+ await expectLogic(logic).toDispatchActions(['resolveFingerprintSuccess'])
+
+ expect(router.values.location.pathname).toMatch(/\/error_tracking\/issue-1$/)
+ expect(router.values.searchParams).toEqual(expectedParams)
+ })
+
+ it('extracts the raw, still-encoded fingerprint segment from the pathname', () => {
+ expect(rawFingerprintPathSegment('/project/1/error_tracking/fingerprint/%24uper%2Fstrange%23fp')).toEqual(
+ '%24uper%2Fstrange%23fp'
+ )
+ expect(rawFingerprintPathSegment('/project/1/error_tracking/issue-id')).toBeNull()
+ })
+})
diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts
new file mode 100644
index 000000000000..df079b07656c
--- /dev/null
+++ b/products/error_tracking/frontend/scenes/ErrorTrackingFingerprintScene/errorTrackingFingerprintSceneLogic.ts
@@ -0,0 +1,166 @@
+import { MakeLogicType, actions, connect, kea, key, listeners, path, props, reducers } from 'kea'
+import { loaders } from 'kea-loaders'
+import { router } from 'kea-router'
+import { subscriptions } from 'kea-subscriptions'
+
+import { teamLogic } from 'scenes/teamLogic'
+import { urls } from 'scenes/urls'
+
+import { errorTrackingFingerprintsResolveRetrieve } from '../../generated/api'
+import type { ErrorTrackingFingerprintApi } from '../../generated/api.schemas'
+
+export interface ErrorTrackingFingerprintSceneLogicProps {
+ fingerprint: string
+ timestamp?: string
+}
+
+// A fingerprint links to an issue that may not exist yet — the error can still be in the ingestion
+// pipeline when the user follows the link. Retry a bounded number of times before giving up so the
+// page resolves once processing catches up instead of dead-ending on a transient Not Found.
+const MAX_RESOLVE_RETRIES = 10
+const RESOLVE_RETRY_DELAY_MS = 2000
+
+// kea-router runs decodeURI(pathname) before matching the route, so the `:fingerprint` param it
+// hands paramsToProps is already partially decoded. Decoding that a second time turns an encoded
+// literal `%` into a bare `%` (throwing URIError) and silently mangles `%XX` sequences. Callers
+// must pass the raw, still-percent-encoded path segment (see rawFingerprintPathSegment); we decode
+// it exactly once here and fall back to the raw text if it isn't valid encoding.
+export function decodeFingerprintSegment(rawSegment: string): string {
+ try {
+ return decodeURIComponent(rawSegment)
+ } catch {
+ return rawSegment
+ }
+}
+
+// Recover the original encoded fingerprint segment from the raw pathname. kea-router keeps
+// location.pathname percent-encoded — only the transient match inside urlToAction runs decodeURI —
+// so this is the single source that survives one clean decodeURIComponent.
+export function rawFingerprintPathSegment(pathname: string): string | null {
+ const match = pathname.match(/\/error_tracking\/fingerprint\/([^/]+)\/?$/)
+ return match ? match[1] : null
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface errorTrackingFingerprintSceneLogicValues {
+ currentTeamId: number | null // teamLogic
+ notFound: boolean
+ resolvedFingerprint: ErrorTrackingFingerprintApi | null
+ resolvedFingerprintLoading: boolean
+ retries: number
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface errorTrackingFingerprintSceneLogicActions {
+ giveUp: () => {}
+ resolveFingerprint: () => any
+ resolveFingerprintFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ resolveFingerprintSuccess: (
+ resolvedFingerprint: ErrorTrackingFingerprintApi | null,
+ payload?: any
+ ) => {
+ resolvedFingerprint: ErrorTrackingFingerprintApi | null
+ payload?: any
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface errorTrackingFingerprintSceneLogicMeta {
+ key: string
+}
+
+export type errorTrackingFingerprintSceneLogicType = MakeLogicType<
+ errorTrackingFingerprintSceneLogicValues,
+ errorTrackingFingerprintSceneLogicActions,
+ ErrorTrackingFingerprintSceneLogicProps,
+ errorTrackingFingerprintSceneLogicMeta
+>
+
+export const errorTrackingFingerprintSceneLogic = kea<errorTrackingFingerprintSceneLogicType>([
+ path((key) => ['products', 'error_tracking', 'scenes', 'errorTrackingFingerprintSceneLogic', key]),
+ props({} as ErrorTrackingFingerprintSceneLogicProps),
+ key((props) => props.fingerprint),
+ connect(() => ({
+ values: [teamLogic, ['currentTeamId']],
+ })),
+
+ actions({
+ giveUp: () => ({}),
+ }),
+
+ reducers({
+ retries: [0, { resolveFingerprintFailure: (state) => state + 1 }],
+ // Terminal "not found" is distinct from "still resolving": once we've exhausted retries the
+ // page must stop showing the loading state and render Not Found.
+ notFound: [false, { giveUp: () => true, resolveFingerprint: () => false }],
+ }),
+
+ loaders(({ props }) => ({
+ resolvedFingerprint: [
+ null as ErrorTrackingFingerprintApi | null,
+ {
+ resolveFingerprint: async (): Promise<ErrorTrackingFingerprintApi | null> => {
+ const teamId = teamLogic.values.currentTeamId
+ if (!teamId || !props.fingerprint) {
+ return null
+ }
+ return await errorTrackingFingerprintsResolveRetrieve(String(teamId), {
+ fingerprint: props.fingerprint,
+ })
+ },
+ },
+ ],
+ })),
+
+ listeners(({ props, values, actions, cache }) => ({
+ // The error may still be in the ingestion pipeline, so a Not Found can be transient. Retry a
+ // few times before giving up. Same disposable key so a pending retry is replaced, not stacked.
+ resolveFingerprintFailure: () => {
+ if (values.retries > MAX_RESOLVE_RETRIES) {
+ actions.giveUp()
+ return
+ }
+ cache.disposables.add(() => {
+ const timerId = window.setTimeout(() => actions.resolveFingerprint(), RESOLVE_RETRY_DELAY_MS)
+ return () => clearTimeout(timerId)
+ }, 'resolveRetry')
+ },
+ resolveFingerprintSuccess: ({ resolvedFingerprint }) => {
+ if (!resolvedFingerprint) {
+ return
+ }
+ // Preserve the alert attribution the link arrived with (see errorTrackingIssueLinkHogTemplate)
+ // so the redirect to the issue page keeps its channel attribution.
+ const { utm_source, utm_campaign, utm_medium } = router.values.searchParams
+ router.actions.replace(
+ urls.errorTrackingIssue(resolvedFingerprint.issue_id, {
+ fingerprint: props.fingerprint,
+ // Only forward a timestamp the link actually carried — without one, the issue
+ // scene defaults to the newest event via its summary query.
+ timestamp: props.timestamp,
+ utm_source,
+ utm_campaign,
+ utm_medium,
+ })
+ )
+ },
+ })),
+
+ subscriptions(({ actions, values }) => ({
+ // The team may not be loaded yet when the scene mounts from a direct link or hard refresh.
+ // Resolving then returns null and the page falls into a permanent Not Found, so re-run
+ // resolution once the team id is available. This fires on mount too, so it's the only
+ // trigger we need.
+ currentTeamId: (currentTeamId: number | null) => {
+ if (currentTeamId && !values.resolvedFingerprint && !values.resolvedFingerprintLoading) {
+ actions.resolveFingerprint()
+ }
+ },
+ })),
+])
diff --git a/products/error_tracking/manifest.tsx b/products/error_tracking/manifest.tsx
index 3c1f660a577f..3bc30105a5d1 100644
--- a/products/error_tracking/manifest.tsx
+++ b/products/error_tracking/manifest.tsx
@@ -28,9 +28,15 @@ export const manifest: ProductManifest = {
projectBased: true,
name: 'Error tracking issue fingerprints',
},
+ ErrorTrackingFingerprint: {
+ import: () => import('./frontend/scenes/ErrorTrackingFingerprintScene/ErrorTrackingFingerprintScene'),
+ projectBased: true,
+ name: 'Error tracking fingerprint',
+ },
},
routes: {
'/error_tracking': ['ErrorTracking', 'errorTracking'],
+ '/error_tracking/fingerprint/:fingerprint': ['ErrorTrackingFingerprint', 'errorTrackingFingerprint'],
'/error_tracking/:id': ['ErrorTrackingIssue', 'errorTrackingIssue'],
'/error_tracking/:id/fingerprints': ['ErrorTrackingIssueFingerprints', 'errorTrackingIssueFingerprints'],
'/error_tracking/alerts/:id': ['HogFunction', 'errorTrackingAlert'],
@@ -58,9 +64,18 @@ export const manifest: ProductManifest = {
searchQuery?: string
dateRange?: DateRange
filterGroup?: UniversalFiltersGroup
+ utm_source?: string
+ utm_campaign?: string
+ utm_medium?: string
} = {}
): string => combineUrl(`/error_tracking/${id}`, params).url,
errorTrackingIssueFingerprints: (id: string): string => `/error_tracking/${id}/fingerprints`,
+ errorTrackingFingerprint: (
+ fingerprint: string,
+ params: {
+ timestamp?: string
+ } = {}
+ ): string => combineUrl(`/error_tracking/fingerprint/${encodeURIComponent(fingerprint)}`, params).url,
errorTrackingAlert: (id: string): string => `/error_tracking/alerts/${id}`,
errorTrackingAlertNew: (templateId: string): string => `/error_tracking/alerts/new/${templateId}`,
},
diff --git a/products/error_tracking/mcp/error_tracking_alerts.yaml b/products/error_tracking/mcp/error_tracking_alerts.yaml
index b69f4a42eac9..22f0a3f74a08 100644
--- a/products/error_tracking/mcp/error_tracking_alerts.yaml
+++ b/products/error_tracking/mcp/error_tracking_alerts.yaml
@@ -99,7 +99,7 @@ tools:
{"type": "divider"},
{"type": "actions", "elements": [
{"type": "button", "text": {"type": "plain_text", "text": "View Issue"},
- "url": "{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}
+ "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"}
]}
]}
}
@@ -109,8 +109,7 @@ tools:
`Issue reopened: {event.properties.name}`.
For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to
- `📈 Issue spiking`, drop the `fingerprint`/`timestamp` params from the button URL (spiking
- events do not carry them), and add a context line referencing
+ `📈 Issue spiking` and add a context line referencing
`{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The
exact block layout is in the `authoring-error-tracking-alerts` skill references.
@@ -123,13 +122,13 @@ tools:
Event property reference — common across all three events: `event.properties.name` (issue title),
- `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link).
- `created`/`reopened` additionally expose `event.properties.status`, `event.properties.fingerprint`,
- `event.properties.exception_timestamp`, and the originating exception's properties (e.g. `$exception_types`,
- `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and
- `event.properties.computed_baseline` — no status, fingerprint, or exception properties. Project context is
- available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own
- metadata as `{source.url}` and `{source.name}`.
+ `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link),
+ `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened`
+ additionally expose `event.properties.status` and the originating exception's properties (e.g.
+ `$exception_types`, `$exception_issue_id`). Spiking events instead expose
+ `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception
+ properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`),
+ `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.
exclude_params:
- _create_in_folder
- batch_export_id
diff --git a/products/error_tracking/mcp/tools.yaml b/products/error_tracking/mcp/tools.yaml
index 9fe4daaea836..202b95cdc1ad 100644
--- a/products/error_tracking/mcp/tools.yaml
+++ b/products/error_tracking/mcp/tools.yaml
@@ -158,6 +158,9 @@ tools:
error-tracking-fingerprints-list:
operation: error_tracking_fingerprints_list
enabled: false
+ error-tracking-fingerprints-resolve-retrieve:
+ operation: error_tracking_fingerprints_resolve_retrieve
+ enabled: false
error-tracking-fingerprints-retrieve:
operation: error_tracking_fingerprints_retrieve
enabled: false
diff --git a/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md b/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md
index 9ca9ce98ba2c..5ff3f2304392 100644
--- a/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md
+++ b/products/error_tracking/skills/authoring-error-tracking-alerts/references/block-templates.md
@@ -55,7 +55,7 @@ time against the live event — leave the curly-braced segments as-is.
{
"type": "button",
"text": { "type": "plain_text", "text": "View Issue" },
- "url": "{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
+ "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
}
]
}
@@ -87,7 +87,7 @@ time against the live event — leave the curly-braced segments as-is.
```json
"inputs": {
"content": {
- "value": "**🔴 {event.properties.name} created:** {event.properties.description}"
+ "value": "**🔴 {event.properties.name} created:** {event.properties.description}\n\n[View in PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"
}
}
```
@@ -97,7 +97,7 @@ time against the live event — leave the curly-braced segments as-is.
```json
"inputs": {
"text": {
- "value": "**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog]({project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"
+ "value": "**🔴 {event.properties.name} created:** {event.properties.description} (View in [PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"
}
}
```
@@ -111,10 +111,13 @@ all three:
"inputs": {
"title": { "value": "{event.properties.name}" },
"description": { "value": "{event.properties.description}" },
- "posthog_issue_id": { "value": "{event.distinct_id}" }
+ "posthog_issue_id": { "value": "{event.distinct_id}" },
+ "posthog_issue_url": { "value": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=linear" }
}
```
+Set `utm_medium` to the destination (`linear`, `github`, `gitlab`). `posthog_issue_url` is the merge-stable deep link embedded in the external issue; when omitted, the destination falls back to building a link from `posthog_issue_id`.
+
## `$error_tracking_issue_reopened`
### Slack — `template-slack`
@@ -142,7 +145,7 @@ Same as `_created`, with the header swapped to `🔄` and the section text to "I
{
"type": "button",
"text": { "type": "plain_text", "text": "View Issue" },
- "url": "{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
+ "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
}
]
}
@@ -182,7 +185,7 @@ Use the same shape as `_created`, swap `🔴` → `🔄` and "created" → "reop
{
"type": "button",
"text": { "type": "plain_text", "text": "View Issue" },
- "url": "{project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
+ "url": "{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack"
}
]
}
@@ -200,7 +203,7 @@ end up with `0x over baseline` in the message, which is wrong.
````json
"inputs": {
"content": {
- "value": "**📈 Issue spiking**\n\n```\n{event.properties.name}: {substring(event.properties.description, 1, 1000)}\n```\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'})\n**Project:** [{project.name}]({project.url})\n**Alert:** [{source.name}]({source.url})\n\n[View issue]({project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"
+ "value": "**📈 Issue spiking**\n\n```\n{event.properties.name}: {substring(event.properties.description, 1, 1000)}\n```\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'})\n**Project:** [{project.name}]({project.url})\n**Alert:** [{source.name}]({source.url})\n\n[View issue]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=discord)"
}
}
````
@@ -210,7 +213,7 @@ end up with `0x over baseline` in the message, which is wrong.
```json
"inputs": {
"text": {
- "value": "**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog]({project.url}/error_tracking/{event.distinct_id}?utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"
+ "value": "**📈 Issue spiking: {event.properties.name}:** {event.properties.description}\n**Exceptions in last 5 minutes:** {event.properties.current_bucket_value} ({event.properties.computed_baseline > 0 ? concat(round(event.properties.current_bucket_value / event.properties.computed_baseline), 'x over baseline') : 'no baseline yet'}) (View in [PostHog]({project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=microsoft_teams))"
}
}
```
diff --git a/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md b/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md
index e9ea11dc893f..5e6b2fc988b7 100644
--- a/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md
+++ b/products/error_tracking/skills/authoring-error-tracking-alerts/references/event-triggers.md
@@ -68,12 +68,13 @@ a typical production project; tighter thresholds make this much noisier.
detector either over-fires or under-fires.
**Useful event properties for templating** — spiking events carry a smaller surface than `_created`:
-no `status`, no `fingerprint`, no `exception_timestamp`, and no exception properties (so no per-issue
-property scoping). Available:
+no `status` and no exception properties (so no per-issue property scoping). Available:
- `event.properties.name` — issue title.
- `event.properties.description` — truncated body / message.
- `event.distinct_id` — the issue id.
+- `event.properties.fingerprint` — a fingerprint of the spiking issue, for the merge-stable deep link.
+- `event.properties.exception_timestamp` — the spike detection time.
- `event.properties.current_bucket_value` — exception count in the current detection window (typically
5 minutes).
- `event.properties.computed_baseline` — the historical baseline the current value is being compared
@@ -94,10 +95,11 @@ useful for "manage this alert" links inside the message body.
**Deep-link shape** for the issue page (used by the canonical block templates):
```text
-{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack
+{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack
```
-`utm_medium` matches the destination (`slack`, `discord`, `microsoft_teams`). For `_spiking` links, drop
-the `fingerprint` and `timestamp` params — spiking events do not carry those properties. The `utm_*`
-tags let the team measure how often issues get clicked from alerts later via product analytics on
-`$pageview`.
+The link goes through the fingerprint redirect page, which resolves the fingerprint to whatever issue it currently belongs to — so links keep working after issues are merged.
+`utm_medium` matches the destination (`slack`, `discord`, `microsoft_teams`).
+The same link shape is used for all three trigger events.
+
+The `utm_*` tags let the team measure how often issues get clicked from alerts later via product analytics on `$pageview`.
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index a52946a97844..22251bed9118 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -2801,7 +2801,7 @@
"feature_flag": "engineering-analytics"
},
"error-tracking-alerts-create": {
- "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking`, drop the `fingerprint`/`timestamp` params from the button URL (spiking\n events do not carry them), and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link). `created`/`reopened` additionally expose `event.properties.status`, `event.properties.fingerprint`, `event.properties.exception_timestamp`, and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status, fingerprint, or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",
+ "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",
"category": "Error tracking alerts",
"feature": "error_tracking",
"summary": "Create error tracking alert",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 4347f3f71096..eed37d4a31e6 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -2844,7 +2844,7 @@
"feature_flag": "engineering-analytics"
},
"error-tracking-alerts-create": {
- "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/{event.distinct_id}?fingerprint={event.properties.fingerprint}&timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking`, drop the `fingerprint`/`timestamp` params from the button URL (spiking\n events do not carry them), and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link). `created`/`reopened` additionally expose `event.properties.status`, `event.properties.fingerprint`, `event.properties.exception_timestamp`, and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status, fingerprint, or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",
+ "description": "Create an error tracking alert that fires when an issue is created, reopened, or starts spiking. An alert is a HogFunction with `type=internal_destination` whose `filters.events` references one of the three error-tracking lifecycle events. The events themselves are the trigger — there is no threshold or evaluation window to configure.\n\nTrigger events:\n- `$error_tracking_issue_created` — fires once when a new issue first appears.\n- `$error_tracking_issue_reopened` — fires when a previously resolved issue starts emitting again.\n- `$error_tracking_issue_spiking` — fires when the spike detector flags abnormal volume on an\n issue. The spike threshold is configured separately via the spike detection config endpoint\n and applies to all issues in the project.\n\n\nRecipe — deliver an error tracking alert to Slack or a webhook:\n\n1. Confirm the trigger and channel with the user. Picking `created` for a noisy project will\n flood the channel; `spiking` is usually the safer default. Do not assume.\n\n\n2. Pick the integration. For Slack, call `integrations-list` with `kind=slack` to find the\n integration id, then `integrations-channels-retrieve` for that integration to list channels.\n For a webhook, the user provides the destination URL directly. Confirm the channel name or\n webhook URL with the user before creating the alert — never wire a new alert to a production\n channel without explicit confirmation.\n\n\n3. Dedupe. Call `error-tracking-alerts-list` and check whether an alert for the same trigger\n event already exists. Skip creation if one is present and enabled — call\n `error-tracking-alerts-partial-update` to adjust an existing alert instead of creating a\n duplicate. Several alerts on the same event for the same channel produce duplicate\n notifications.\n\n\n4. Create. Use `type=internal_destination`, the integration's `template_id`\n (`template-slack`, `template-webhook`, `template-discord`, `template-microsoft-teams`,\n `template-linear`, `template-github`, or `template-gitlab`), and:\n\n filters = {\n \"events\": [{\"id\": \"$error_tracking_issue_created\", \"type\": \"events\"}]\n }\n\n Optional per-issue scoping (`created`/`reopened` only): add a `filters.properties` clause\n on `$exception_issue_id` — for example\n `[{\"key\": \"$exception_issue_id\", \"value\": \"<issue_uuid>\", \"operator\": \"exact\", \"type\": \"event\"}]`\n to alert only on a specific known-flaky issue. `$error_tracking_issue_spiking` events carry\n no exception properties, so spiking alerts cannot be scoped per issue. PostHog's \"alerts\n configured\" recommendation only checks `filters.events`, so adding property filters does\n not affect it.\n\n\n5. Slack message body. Mirror the shape the in-product alert wizard produces so agent-created\n and UI-created alerts look identical. The canonical payloads for every integration are in\n the `authoring-error-tracking-alerts` skill references.\n\n For `$error_tracking_issue_created` (Slack):\n\n inputs = {\n \"slack_workspace\": {\"value\": <slack_integration_id_int>},\n \"channel\": {\"value\": \"<channel_id>\"},\n \"text\": {\"value\": \"New issue created: {event.properties.name}\"},\n \"blocks\": {\"value\": [\n {\"type\": \"header\", \"text\": {\"type\": \"plain_text\",\n \"text\": \"🔴 {event.properties.name}\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"plain_text\", \"text\": \"New issue created\"}},\n {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\",\n \"text\": \"```{substring(event.properties.description, 1, 150)}```\"}},\n {\"type\": \"context\", \"elements\": [\n {\"type\": \"plain_text\", \"text\": \"Status: {event.properties.status}\"},\n {\"type\": \"mrkdwn\", \"text\": \"Project: <{project.url}|{project.name}>\"},\n {\"type\": \"mrkdwn\", \"text\": \"Alert: <{source.url}|{source.name}>\"}\n ]},\n {\"type\": \"divider\"},\n {\"type\": \"actions\", \"elements\": [\n {\"type\": \"button\", \"text\": {\"type\": \"plain_text\", \"text\": \"View Issue\"},\n \"url\": \"{project.url}/error_tracking/fingerprint/{encodeURLComponent(event.properties.fingerprint)}?timestamp={event.properties.exception_timestamp}&utm_source=alert&utm_campaign=error_tracking_alert&utm_medium=slack\"}\n ]}\n ]}\n }\n\n For `$error_tracking_issue_reopened`, use the same blocks with the header swapped to\n `🔄 {event.properties.name}`, the section text to `Issue reopened`, and `text` to\n `Issue reopened: {event.properties.name}`.\n\n For `$error_tracking_issue_spiking` (Slack), use the same shape but swap the header to\n `📈 Issue spiking` and add a context line referencing\n `{event.properties.current_bucket_value}` and `{event.properties.computed_baseline}`. The\n exact block layout is in the `authoring-error-tracking-alerts` skill references.\n\n\n6. Webhook body. The webhook template only requires `url`:\n\n inputs = {\"url\": {\"value\": \"<destination_url>\"}}\n\n Webhooks must be `https://` URLs.\n\n\nEvent property reference — common across all three events: `event.properties.name` (issue title), `event.properties.description` (truncated body), `event.distinct_id` (issue id used in the deep link), `event.properties.fingerprint`, and `event.properties.exception_timestamp`. `created`/`reopened` additionally expose `event.properties.status` and the originating exception's properties (e.g. `$exception_types`, `$exception_issue_id`). Spiking events instead expose `event.properties.current_bucket_value` and `event.properties.computed_baseline` — no status or exception properties. Project context is available as `{project.url}` (already includes `/project/<team_id>`), `{project.name}`, and the alert's own metadata as `{source.url}` and `{source.name}`.",
"category": "Error tracking alerts",
"feature": "error_tracking",
"summary": "Create error tracking alert",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 7992bea53721..498034ed544b 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -22370,9 +22370,13 @@ export namespace Schemas {
}
export interface ErrorTrackingFingerprint {
+ /** Unique ID of the fingerprint record. */
readonly id: string;
+ /** The fingerprint value. */
readonly fingerprint: string;
+ /** ID of the issue this fingerprint currently belongs to. */
readonly issue_id: string;
+ /** When the fingerprint record was created. */
readonly created_at: string;
}
@@ -66354,6 +66358,13 @@ export namespace Schemas {
offset?: number;
};
+ export type EnvironmentsErrorTrackingFingerprintsResolveRetrieveParams = {
+ /**
+ * Fingerprint value to resolve to the issue it currently belongs to.
+ */
+ fingerprint: string;
+ };
+
export type EnvironmentsErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {
/**
* Code snippet to search for in repository files.
@@ -73548,6 +73559,13 @@ export namespace Schemas {
offset?: number;
};
+ export type ErrorTrackingFingerprintsResolveRetrieveParams = {
+ /**
+ * Fingerprint value to resolve to the issue it currently belongs to.
+ */
+ fingerprint: string;
+ };
+
export type ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {
/**
* Code snippet to search for in repository files.
diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.json
index 48e190cb9bc7..a4e09fbb504c 100644
--- a/services/mcp/src/tools/links/app-url-manifest.json
+++ b/services/mcp/src/tools/links/app-url-manifest.json
@@ -509,6 +509,11 @@
"params": [],
"scope": "project"
},
+ "errorTrackingFingerprint": {
+ "template": "/error_tracking/fingerprint/{fingerprint}",
+ "params": ["fingerprint"],
+ "scope": "project"
+ },
"errorTrackingIssue": {
"template": "/error_tracking/{id}",
"params": ["id"],
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
index 82d3ce51d255..dc9c14f973bf 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json
@@ -13,7 +13,7 @@
"type": "object"
},
"url": {
- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/button-tiles/{buttonTileId}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/text-tiles/{textTileId}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/comments\n/data-management/comments/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-ops\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/inbox\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/query_performance\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/prompt-management/skills\n/prompt-management/skills/{name}\n/replay-vision\n/replay-vision/observations/{observationId}\n/replay-vision/templates\n/replay-vision/{id}/configure\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/revenue_analytics\n/session-summaries\n/session-summaries/{sessionGroupId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/project\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/slack-task-context\n/sql\n/startups\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-reports\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/button-tiles/{buttonTileId}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/text-tiles/{textTileId}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/comments\n/data-management/comments/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-ops\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/inbox\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/query_performance\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/prompt-management/skills\n/prompt-management/skills/{name}\n/replay-vision\n/replay-vision/observations/{observationId}\n/replay-vision/templates\n/replay-vision/{id}/configure\n/replay-vision/{id}/triggers\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/revenue_analytics\n/session-summaries\n/session-summaries/{sessionGroupId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/project\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/slack-task-context\n/sql\n/startups\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-reports\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",
"type": "string"
}
},