: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
chore(logs): remove fully rolled-out logs-settings flag (#82676)
Frank Hamand055fa33fb1da
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex c9138b123691..a3b16cc3339a 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -1861,9 +1861,9 @@ snapshots:components-search--product-recents-and-starred--light:hash: v1.k794b7964.0c8a6bf4583b3b19aeec3990ba3d287b5ded7af1b87f5dbf4ff6676259a3bfb2.-Ln1KIyfpyPdHd-LjCVqBbjPPdZsRT08QbkGa-E33_Ucomponents-search--searching--dark:- hash: v1.k794b7964.7d18a800bf68133261661357a9f852eee3deb4b8a6c3e1d2bf354165308e1783.NZUBoWvHtgycHH1yCecSCzqGkQz2zHIG3CugokLolEU+ hash: v1.k794b7964.dcc0b8b00ba6d4a79bcc3faaedf62ed0c318dccc67a801674580da6200d2d1f7.J65LhJNiyRpcKl_zEVxpzyV4yYNSx39d_duFBE8zNCEcomponents-search--searching--light:- hash: v1.k794b7964.bc621f20b1af7f571eb9ed999c0f9bdb981cee59d9f926093e838e6de0473e95.EUdhWrEgvYdy40KgoOi-1ioGaH0Bojf7zJGaFsjkZAs+ hash: v1.k794b7964.edcedc508259aade794822bc31da33770ea5101b1bf62dfb594c3133613596ee.hH84nEr_cd3qGTf5t61APCAFZmUJGUyIOzDQA9SB604components-sentencelist--full-sentence--dark:hash: v1.k794b7964.7e8e5dd2e09d246cc3668f362f2391fe67618bd1143aa393832297f5dc30e558.yptEWKc5RAUY613Fwd5cQ0VIinMvpdoI6cuKgagAGxkcomponents-sentencelist--full-sentence--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 414c7da45b9c..b830c8ecc9f3 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -370,7 +370,6 @@ export const FEATURE_FLAGS = {LOGS_SAVED_VIEWS: 'logs-saved-views', // owner: #team-logsLOGS_SERVICES_VIEW: 'logs-services-view', // owner: #team-logsLOGS_SERVICES_VIEW_V2: 'logs-services-view-v2', // owner: #team-logs- LOGS_SETTINGS: 'logs-settings', // owner: #team-logsLOGS_SETTINGS_JSON: 'logs-settings-json', // owner: #team-logsLOGS_SETTINGS_PII_SCRUB: 'logs-settings-pii-scrub', // owner: #team-logsLOGS_SETTINGS_RETENTION_RULES: 'logs-settings-retention-rules', // owner: #team-logsdiff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex dd8170faad28..fd71535c1447 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -798,7 +798,6 @@ export const SETTINGS_MAP: SettingSection[] = [level: 'environment',id: 'environment-logs',title: 'Logs',- flag: 'LOGS_SETTINGS',group: 'Products',settings: [{@@ -809,7 +808,6 @@ export const SETTINGS_MAP: SettingSection[] = [docsUrl: 'https://posthog.com/docs/logs',platformSupport: FEATURE_SUPPORT.logsCapture,component: <LogsCaptureSettings />,- flag: 'LOGS_SETTINGS',keywords: ['log', 'capture', 'collect', 'ingest', 'console'],},{@@ -844,7 +842,6 @@ export const SETTINGS_MAP: SettingSection[] = [searchDescription:"The log attributes PostHog reads to identify which person a log belongs to. A log is linked when any of these attributes matches one of the person's distinct IDs. Defaults to posthogDistinctId, the key the JavaScript and React Native SDKs auto-attach. Add keys only if your backend pipeline emits the person identifier under different attributes.",component: <LogsDistinctIdAttributeKeys />,- flag: 'LOGS_SETTINGS',keywords: ['log', 'person', 'distinct', 'attribute', 'pivot', 'profile', 'link'],},{@@ -861,7 +858,6 @@ export const SETTINGS_MAP: SettingSection[] = [searchDescription:'The log attributes PostHog reads to identify which session a log belongs to, checked in order with the first match winning, followed by other common session ID attributes. Defaults to sessionId, the key the JavaScript and React Native SDKs auto-attach. Add keys only if your pipeline emits the session ID under different attributes.',component: <LogsSessionIdAttributeKeys />,- flag: 'LOGS_SETTINGS',keywords: ['log', 'session', 'replay', 'attribute', 'link'],},{diff --git a/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx b/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsxindex 08d59bf0d74e..5e4aed4efe0d 100644--- a/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx+++ b/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx@@ -8,7 +8,6 @@ import { LemonButton, Link, Spinner } from '@posthog/lemon-ui'import { pngHoggie } from 'lib/brand/hoggies'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { useInterval } from 'lib/hooks/useInterval'import goImage from 'scenes/onboarding/shared/logos/go.svg'import javaImage from 'scenes/onboarding/shared/logos/java.svg'@@ -70,7 +69,6 @@ const NoLogsPrompt = ({ className }: { className?: string }): JSX.Element | nullconst { hasLogs } = useValues(logsIngestionLogic)const { loadTeamHasLogs } = useActions(logsIngestionLogic)const openLogsSettings = useOpenLogsSettingsPanel()- const hasLogsSettings = useFeatureFlag('LOGS_SETTINGS')useEffect(() => {posthog.capture('logs setup prompt viewed')@@ -136,14 +134,12 @@ const NoLogsPrompt = ({ className }: { className?: string }): JSX.Element | null</LemonButton>))}</div>- {hasLogsSettings && (- <p className="text-sm text-secondary m-0">- Already using <code>posthog-js</code>?{' '}- <LemonButton type="tertiary" size="xsmall" icon={<IconGear />} onClick={openLogsSettings}>- Enable console log capture- </LemonButton>- </p>- )}+ <p className="text-sm text-secondary m-0">+ Already using <code>posthog-js</code>?{' '}+ <LemonButton type="tertiary" size="xsmall" icon={<IconGear />} onClick={openLogsSettings}>+ Enable console log capture+ </LemonButton>+ </p><div className="flex items-center gap-4"><div className="flex items-center gap-2 px-3 py-1.5 border border-accent rounded"><div className="relative flex items-center justify-center">