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(tracing): add feedback button to TracingScene actions (#60959)

Jon McCallumde1c1db54c04
diff --git a/products/tracing/frontend/TracingScene.tsx b/products/tracing/frontend/TracingScene.tsx
index 1af6a0302935..bbdd0beb4ed5 100644
--- a/products/tracing/frontend/TracingScene.tsx
+++ b/products/tracing/frontend/TracingScene.tsx
@@ -92,6 +92,10 @@ function TracingSceneContents(): JSX.Element {
})
}
+ const onFeedbackClick = (): void => {
+ posthog.displaySurvey(TRACING_FEEDBACK_SURVEY_ID)
+ }
+
// Anchor the overlay's coordinate space to the *fetched* sparkline data so overlay
// drags never shift the canvas underfoot. The sparkline only refetches when dateRange
// changes (via the DateFilter), never via overlay interaction.
@@ -118,15 +122,20 @@ function TracingSceneContents(): JSX.Element {
type: 'tracing',
}}
actions={
- <LemonButton
- to={TRACING_DOCS_URL}
- onClick={onDocsLinkClick}
- type="secondary"
- size="small"
- targetBlank
- >
- Documentation
- </LemonButton>
+ <>
+ <LemonButton size="small" type="secondary" icon={<IconFeedback />} onClick={onFeedbackClick}>
+ Feedback
+ </LemonButton>
+ <LemonButton
+ to={TRACING_DOCS_URL}
+ onClick={onDocsLinkClick}
+ type="secondary"
+ size="small"
+ targetBlank
+ >
+ Documentation
+ </LemonButton>
+ </>
}
/>
<LemonBanner
@@ -135,7 +144,7 @@ function TracingSceneContents(): JSX.Element {
action={{
icon: <IconFeedback />,
children: 'Share feedback',
- onClick: () => posthog.displaySurvey(TRACING_FEEDBACK_SURVEY_ID),
+ onClick: onFeedbackClick,
}}
>
Tracing is in alpha. Expect bugs, missing features, and breaking changes.