: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(logs): add context links to the expanded log row (#115343)
Jon McCallumda58971db987
diff --git a/products/logs/frontend/components/LogsViewer/ExpandedLogContent.tsx b/products/logs/frontend/components/LogsViewer/ExpandedLogContent.tsxindex 1ed58cad57af..83e84ddbcb63 100644--- a/products/logs/frontend/components/LogsViewer/ExpandedLogContent.tsx+++ b/products/logs/frontend/components/LogsViewer/ExpandedLogContent.tsx@@ -1,6 +1,10 @@+import { useActions } from 'kea'+import { PropertyFilterType } from '~/types'import { LogAttributes } from 'products/logs/frontend/components/LogsViewer/LogAttributes'+import { LogContextLinks } from 'products/logs/frontend/components/LogsViewer/LogContextLinks/LogContextLinks'+import { logDetailsModalLogic } from 'products/logs/frontend/components/LogsViewer/LogDetailsModal/logDetailsModalLogic'import { ParsedLogMessage } from 'products/logs/frontend/types'export interface ExpandedLogContentProps {@@ -8,8 +12,15 @@ export interface ExpandedLogContentProps {}export function ExpandedLogContent({ log }: ExpandedLogContentProps): JSX.Element {+ const { openLogRelatedErrors } = useActions(logDetailsModalLogic)+return (- <div className="flex flex-col gap-2 p-2 bg-primary border-t border-border">+ <div className="hotkey-block flex flex-col gap-2 p-2 bg-primary border-t border-border">+ <LogContextLinks+ log={log}+ surface="row"+ onOpenRelatedErrors={(scope) => openLogRelatedErrors(log, scope)}+ /><LogAttributesattributes={log.attributes}type={PropertyFilterType.LogAttribute}