: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(llma): remove fully rolled-out LLM analytics feature flags (#65276)
Radu Raiceacdd97d8aa19d
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex b7ffad6eef5c..4b9dfd945d4d 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -1409,9 +1409,9 @@ snapshots:components-playerinspector-itemdoctor--snapshot-type-counts--light:hash: v1.k794b7964.0f18d95f7773bbf995f86cf13254ff41ddc6b11d1d3b5c0641f60365355e3145.eUs-pGedPj1ElXgGW6VAnNTrZ0vEr4u1doXrtaTdy6Ycomponents-playerinspector-itemevent--ai-generation-event--dark:- hash: v1.k794b7964.803f784cee380f1f782e8acba8c4c5799cdd5af4923cd71f7e1e08a9259dd0f3.DmyM9R2AU0ZnqlTEHUcHOXFRrAYg7dX0U0AAOEkQimg+ hash: v1.k794b7964.b7b077f5215285f071f84d2ba8badc545c80d19c7ff26698ccba4dfc3527c00c.xb5SZ40_f2gxkVQms0tO49QYEXfxHwA5sRHdz2LmJl0components-playerinspector-itemevent--ai-generation-event--light:- hash: v1.k794b7964.e3636892235d8c0cd9bb4033cc7b3847844c449113a7b840d0935ad20febd28e.aGoD3X73kzjUQwfj0i6irQ9VJVi6QZ_npnX-sDux0wg+ hash: v1.k794b7964.008d3d12c94ea0fcff511b569341c75ca770a233a1ae806cbb797b6e5f3a8dc0.DfiggxfBkOahc5Abma-xWspClf5Mo2yM0FfWKivwU1gcomponents-playerinspector-itemevent--ai-span-event--dark:hash: v1.k794b7964.ed3eed49501458aa64827d8f87a3051a5740c36967b9aa37dbe21087ec3a4ffe._xPRNO5MT5m2lv8bKGzQxiVoR03MQk362eloQyA4orIcomponents-playerinspector-itemevent--ai-span-event--light:@@ -1569,13 +1569,13 @@ snapshots:components-property-key-info--property-key-info--light:hash: v1.k794b7964.63db216acba3083f331daef835d1ea65cacbdc03d93db36296e7d912c66c43b8.GmBa1f-wYDFJ1NIrAUINhxgVsrAzUg8VtkDOrlmKYDQcomponents-search--default--dark:- hash: v1.k794b7964.5f5043e191e7474b26ad464ee818bc14898f54826f8659bc71fc0d324224c9d9.reT8p_2op-qxd3_PNhcBATKuzvwSpZixAbTQXWkwXyQ+ hash: v1.k794b7964.ca379c2f8a830d1d90ea2d72f846684ab3463e22605d0cf3a32950e757379a3e.aWzBtlGRiMCfpp37An06v5onjqjvq4UrwTsfyFPbpfwcomponents-search--default--light:- hash: v1.k794b7964.119e6af03dbe29d37d6bf01d73eed6a7925ba1d1a9872f8ebb2e636dff1d0b6d.4eeMBMVA-Cbt7BXVOrcXlrlitx_cdq9tTU6BuyMafAI+ hash: v1.k794b7964.49182fab6489a71ca97d5c9acf1d1c92796896f775f5730b141476028254e02e.hFIyHuTjJmqbDOjQNRnDBBRKF6C1ko0KzrzCtdpoizUcomponents-search--product-recents-and-starred--dark:- hash: v1.k794b7964.b4c3766792be67a3bce8137e5d9b7fb79f707c6790e4192ca833913723ca9f23._g7FrWggAvVHV4HRNf7QKurtFRad1kheAKEHeAVoMWs+ hash: v1.k794b7964.803a3130b71c7e28e3957f439ee3e50666201ba90ebff02ee2286b8cdfb5bcaf.rCXODb96-lrKNfYxJq-rqfgOJoDJBXTmBXD63y4HUHUcomponents-search--product-recents-and-starred--light:- hash: v1.k794b7964.97e5efb2d91954a33994531f9fb4155d70c96a987db440c00b9bd43e6afde390.-UG32lAwfVJScsWobbnwUM-3Qp44xLXG15beaTHHFMw+ hash: v1.k794b7964.d1758a403c58affafb18200426a1ff62fc908a3cf7b69198d4b96cf0e5fc4d79.GfvoSqPZoq687NsU1Tpx5Q8Xfl6moWo1_8rdXcNlhFMcomponents-search--searching--dark:hash: v1.k794b7964.2b6565645158a1c2b48cdda980298e6564fbb38cd76cb8230a0ff1cc726a6c73.O6ohcLvjdauxqx9m1PA4MXuHqGkca2NCzdfXpKQtyAUcomponents-search--searching--light:@@ -2657,9 +2657,9 @@ snapshots:layout-impersonation-reason-modal--upgrade-to-read-write--light:hash: v1.k794b7964.7686131e8d04113362f587050067e1daa76329becb2e33097cebc43792467919.B37QbmEEFysXtGrVVX0H_WUofFwz8yAI0cJah0GEK9slayout-project-tree-custom-products--all-products--dark:- hash: v1.k794b7964.29bfbacf987ea6bfd40ea4164bfdfe25c7c954299b44d2bcb37805c96b789573.7zgTNIGYdt6mlDI5-u5tyYd-jVwK1LugReb-My0wK-8+ hash: v1.k794b7964.e9bfaa0e3f126993c376fb74db19c723ecfc8a3eccff102100d0daac99ef0890.sXhAC0BhNibCRrAGx__YSVH1YU0mNDNOO2emuRwfmgIlayout-project-tree-custom-products--all-products--light:- hash: v1.k794b7964.77fcb688e1bb348976c967585a7fadc51e60c278bb5734ea9974751f0cb7589a.1LrLHoAdfT2kaGpBbOQW9Qxrk3sUY0gmWv_LHCZShGU+ hash: v1.k794b7964.69544a1fda7444e1eeff27c3b9ea93cd23733d4bdf08aa2ab389f71666f28467.SsYmIKihdM3G_iOn-QFwnvWPKrxIy5MJTes5DwX2KQ8layout-project-tree-custom-products--default--dark:hash: v1.k794b7964.0cfb3fc7184514a2e43715de235fb08c77d516acc35b1539f4f9c72c5e616684.BTCbowk4NNeKDyVajIr_6Qjut5httj64VO6TqfU8ITAlayout-project-tree-custom-products--default--light:@@ -4547,25 +4547,25 @@ snapshots:scenes-app-ai-observability-clustercard--without-metrics--light:hash: v1.k794b7964.40fe2ec27f207682d637876272008669eb5139a1392848d5a485fdb096165e56.5kZEYnhwH5VkMoV6Th1vetVD4tHzCr7A00A_j65n4cIscenes-app-ai-observability-conversation-display--anthropic--dark:- hash: v1.k794b7964.9c97c85c94605b8ce34469ddb269688ff84d0c3aa87818e6f9c94745c114a434.o6eqWM3HKURlW-MBuPGhIw6sslncdZGR6-pBuz1FVBM+ hash: v1.k794b7964.31e03c10ae856525311bc677608f179bd84e7963a876a0328e06259609d20bd0.kHWLro4n2erXtXN35eUJOe2dytlMLmxjm8RNhqEfl_kscenes-app-ai-observability-conversation-display--anthropic--light:- hash: v1.k794b7964.adac3f298511d332168d987ae7217727570c501715cf4a2b5c68433fc29b15d1.ft-g9lB5GhyduFuMQsZU3zCWQFJ-kyU4_3dUU09e9f4+ hash: v1.k794b7964.3b4e7bc04b75fed204b753fc824104dbc9a518f16e42485cbd411fb64f7a6e6c.oI4MxztV1LSaV9OGclDu3IV59g5R2ussXQ6tlb609qYscenes-app-ai-observability-conversation-display--basic--dark:- hash: v1.k794b7964.6653ca2b3bc07f9e9fe05b27604795ca9923bb5ee734c7a3e360afa5a16daea2.jYBXxDTmyQhBBPG5_Gj4ka-0FNczfAs43xM6qXibREg+ hash: v1.k794b7964.785c48f97a2364667e7f695f3e1c189c464eec319d872f45e077580db569b2e2.btpEr8FpWsooxnIEzLQPt76_lu_iYR7fLdrbmf74XK8scenes-app-ai-observability-conversation-display--basic--light:- hash: v1.k794b7964.792f8ce0deee70dd8efd6464e989a3614e5acf1fd09d8d97098a0e9f3b9f1bc8.yqTeJTIU8HP2BB2EfCBDS4iU-5UhwSPLxFYPSj1YJG8+ hash: v1.k794b7964.a8e22579f7369538739e851d7ecd15e1d04d4ebd5b9e1a0fa2d93a2bdf4dfe46.i51SxLH7hOJ_zaQD5eUZ77Tr-pI1_OnyMh40OQxqK1gscenes-app-ai-observability-conversation-display--error--dark:- hash: v1.k794b7964.4bb19bb7c24d5036e3d18eec8762b255d934743d95c9d3df1311d72ddcb9e6af.zI7ADQHNqQ42pSUBJ6NUHlzuL3fyW9Bjk_n1U__ILvM+ hash: v1.k794b7964.c2e5aec62b0cb3d3bad0a8354a6861bc19c0a7510353bc2d440bd7bab903c75c.Ug7RlT-zXG8PKzkU6pcx2fse_UKew9_uWdZIGU9aDYwscenes-app-ai-observability-conversation-display--error--light:- hash: v1.k794b7964.7d56ea0763dde861822b31914ce7e34ac0b0fa242e42cc43aad86f14f2dfe900.7irw8luMzLgLk_uCx9KcJi40CJu-MKHC_hTFJFjOCQA+ hash: v1.k794b7964.5240b0958d7626317711463cbb07c092b6f95af2154b58695a6994aa44795b68.a12CJTy61MK6d408zBhV2Q1ILqCTC1AaAXtVxllnKEkscenes-app-ai-observability-conversation-display--markdown--dark:- hash: v1.k794b7964.e58ae88aeffb38713039121547d582f6414acd33e3914ebc6a4da54af21c3f85.5HiuvhUrFq0k0vSKA9Y4Pcl7pyRJ1e-BiGgZCZnjN-I+ hash: v1.k794b7964.7e3ff6eb25d34e11723a816ac8e887a32a16b537e85b9a8a6bf8dfb85d4e654f.MnEjU0a_1yC6Qm0XhZ9BFBjhlsx-vAhbiKfwFFPgdyUscenes-app-ai-observability-conversation-display--markdown--light:- hash: v1.k794b7964.f2a7077e37dde8651426d15819ea0c23c8563df9a32b4ef66748bd81821f5a3a.5fAXdFtrPSpKkR6KOPse9vatAg-W8yiX4m2YkCCaLZA+ hash: v1.k794b7964.a3f59a46a488342405409bf1de5234ec5dc9eab1867c162ca71eb5f5326944c7.4ierAW7NKeIrfpylTywUM_voitWmqoa5UPocHn-CRHUscenes-app-ai-observability-conversation-display--tools--dark:- hash: v1.k794b7964.2078d8cc788a3ce126cd1f2d45e95bc3be9df4f4b339ea5b07a665be2a1bd4f9.iePj4eQyD5u-50iGH-6SOgdHKzo3ezY9z-hywnI0Z80+ hash: v1.k794b7964.31dd3a049c9e3f5356472cbd18a155a626f1361d47eae340df33ea13d8d4dcb7.7Q7HDINMMmGgI9JckZbMXNyq_1OQJyYsSGFbzrzJUXoscenes-app-ai-observability-conversation-display--tools--light:- hash: v1.k794b7964.0ec32dedacffd6858921fd0860c7b21dbefe8e612946b07e8a2109b4dadd814d.clIHObcocvyTCDlCCbwE7bYkqzfdHjugski89NuNWM4+ hash: v1.k794b7964.c84f0307f66f72f544b567059ba974dee7ce08ba096f323a84e450d92515a555.48qYVpfpilNvq0EyVfhKR8ydXMWE_3mKGpOJWExKD9Escenes-app-ai-observability-prompts--empty-state--dark:hash: v1.k794b7964.11a2dabf0c9b13f3577274b7b3c9e9e03066f47919eca62f26da7f87012042f8.nf4LNn51hoZQZC_Bcf5NOBEX7t2lWNj867-DjFcapq0scenes-app-ai-observability-prompts--empty-state--light:@@ -4643,17 +4643,17 @@ snapshots:scenes-app-ai-observability-skills--skill-detail-stacked-below-2-xl-breakpoint--wide--light:hash: v1.k794b7964.ef580d47a394f197ebb785c2cac8156ae7e76b62d3220ea7f7b6f2a0609803e6.8rGPQkHXBXwGCatN1swSo0VYg_ZFgpa2fksd77fzWjMscenes-app-ai-observability-trace--full--dark:- hash: v1.k794b7964.296994af982eb0b096056e11cc548d5791b42341cd327c1180c6d1fc23c9c720.pPgjmtw4EdGMKMSIHvGQvnlFjAWDprUj7Z0jknbgqjk+ hash: v1.k794b7964.d882ac1e272c5d2e3b3ded21c5f7218f45260a031ac56370d10ac610ecacdcf1.g2hBUhNhPwPGd1CvcNYv0RU_rklJVchekK6erP-bwycscenes-app-ai-observability-trace--full--light:- hash: v1.k794b7964.0398131af102984194753213ba780df939fbac0ed16332dfcdf9b3f1d669039f.cBBkp-j7nvJSLV9qCgvrbHaPBDIpSTENFUTv_eY6URk+ hash: v1.k794b7964.08846c49a4fba29eff23cd2dc2dde6675b0c972dac32dc0b26cc0a1adad45472.9krA--PzsyjGbET9xU-JtcDCv35Q4-nEY96Y5ofOS90scenes-app-ai-observability-trace--full-specific-event--dark:- hash: v1.k794b7964.4de8815628861bb8b08d047d21715c4092708765ad0fd33e0e1579f2a33001b3.AEqiNKEtRaO1aI9cnGWv8PLtlutECNuaoqqxFCW9XP0+ hash: v1.k794b7964.87e4c3c408c575973f41f2612679437db3b86aa9f6d5f53e8c7f7882c1a8a53f.Tfzbh0JWkSE7GyQy6qnz42psYPMH3GGLQfWyIsOiLV0scenes-app-ai-observability-trace--full-specific-event--light:- hash: v1.k794b7964.23a976705093b991584cbdab95be3b53584fef653618e075d9851d3f184d6d3b.Vjz_9alezkPeJewptI-2ol5f3VA-a5-xkzb5BbHEFOs+ hash: v1.k794b7964.7a1872eddbf1e5fbcbbec077570d297409208ce777ab2f4bb2132e61e101222a.0TvD66VE5zIZbAOjEa-0dvUTPecWrk4zlN0j7SZXSdwscenes-app-ai-observability-trace--without-content--dark:- hash: v1.k794b7964.33000cd287cce76314b2d6a8005a0ed406396a50f43e18656a2ec8d33d33cc2b.rxsuAyw0uMSA4ouh1IhJClwrFxRGgOuKSvA5gpLxKk0+ hash: v1.k794b7964.1602a5780e3fcfb00f1ddac464eaec15fe527ca76da87fcacb90dc288394e2dd.S2c8Kji1KIMXfmiaO6-whfd15X5KxrF7PMUbHIE7-Psscenes-app-ai-observability-trace--without-content--light:- hash: v1.k794b7964.925af22228dd96b4c1bef5ccd9db87cacdbb8a9d9764f6845dbcf28cd510b73c._WVyYZM7SRur33YhrFxOYMN0NurSDNzWONIuDn5bsMw+ hash: v1.k794b7964.73adf4395661c3e956c0478c34ca4640806ece378d419fbe3ed4dabfe94b76a7.NddFMxkK8wm75v-j1Xu_4Lw-TwSZUQzcHzKjJ0x2Gjkscenes-app-aigateway--empty--dark:hash: v1.k794b7964.9e5467f2092ba267f9bfb8adcdffe0d3b31cd6554e2cb65319f32602df9edb0c.FUdZ9vdoxd21tqhGoU2u8tvq-qQdlZkhh8jX8YhZs5Uscenes-app-aigateway--empty--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 6dc69a579d9a..1565bef79550 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -335,32 +335,14 @@ export const FEATURE_FLAGS = {LIVE_DEBUGGER: 'live-debugger', // owner: @marcecollLIVESTREAM_TUI: 'livestream-tui', // owner: @rafaeelaudibert #team-growthLLM_ANALYTICS_CLUSTERING_ADMIN: 'llm-analytics-clustering-admin', // owner: #team-ai-observability- LLM_ANALYTICS_CLUSTERS_TAB: 'llm-analytics-clusters-tab', // owner: #team-ai-observabilityLLM_ANALYTICS_CUSTOM_PARSERS: 'ai-observability-custom-parsers', // owner: #team-ai-observabilityLLM_ANALYTICS_DATASETS: 'llm-analytics-datasets', // owner: #team-ai-observability #team-posthog-ai- LLM_ANALYTICS_DISCUSSIONS: 'llm-analytics-discussions', // owner: #team-ai-observabilityLLM_ANALYTICS_EARLY_ADOPTERS: 'llm-analytics-early-adopters', // owner: #team-ai-observability- LLM_ANALYTICS_EVALUATIONS: 'llm-analytics-evaluations', // owner: #team-ai-observability- LLM_ANALYTICS_EVALUATIONS_CLUSTERING: 'llm-analytics-evaluations-clustering', // owner: #team-ai-observability- LLM_ANALYTICS_EVALUATIONS_CUSTOM_MODELS: 'llm-analytics-evaluations-custom-models', // owner: #team-ai-observability- LLM_ANALYTICS_EVALUATIONS_HOG_CODE: 'llm-analytics-evaluations-hog-code', // owner: #team-ai-observabilityLLM_ANALYTICS_EVALUATIONS_REPORTS: 'llm-analytics-evaluations-reports', // owner: #team-ai-observabilityLLM_ANALYTICS_EVALUATIONS_SENTIMENT: 'llm-analytics-sentiment-evaluations', // owner: #team-ai-observability- LLM_ANALYTICS_EVALUATIONS_SUMMARY: 'llm-analytics-evaluations-summary', // owner: #team-ai-observabilityLLM_ANALYTICS_OFFLINE_EVALS: 'llm-analytics-offline-evals', // owner: #team-ai-observability- LLM_ANALYTICS_SENTIMENT: 'llm-analytics-sentiment', // owner: #team-ai-observability- LLM_ANALYTICS_SENTIMENT_TAB: 'llm-analytics-sentiment-tab', // owner: #team-ai-observability- LLM_ANALYTICS_SESSION_SUMMARIZATION: 'llm-analytics-session-summarization', // owner: #team-ai-observability- LLM_ANALYTICS_SESSIONS_VIEW: 'llm-analytics-sessions-view', // owner: #team-ai-observability- LLM_ANALYTICS_SKILLS: 'llm-analytics-skills', // owner: #team-ai-observability- LLM_ANALYTICS_SUMMARIZATION: 'llm-analytics-summarization', // owner: #team-ai-observabilityLLM_ANALYTICS_TAGS: 'llm-analytics-tags', // owner: #team-ai-observability- LLM_ANALYTICS_TEXT_VIEW: 'llm-analytics-text-view', // owner: #team-ai-observability- LLM_ANALYTICS_TOOLS_CHARTS: 'llm-analytics-tools-charts', // owner: #team-ai-observability- LLM_ANALYTICS_TOOLS_TAB: 'llm-analytics-tools-tab', // owner: #team-ai-observabilityLLM_ANALYTICS_TRACE_NAVIGATION: 'llm-analytics-trace-navigation', // owner: #team-ai-observability- LLM_ANALYTICS_TRACE_REVIEW: 'llma-trace-review', // owner: #team-ai-observability- LLM_ANALYTICS_TRANSLATION: 'llm-analytics-translation', // owner: #team-ai-observabilityLLM_ANALYTICS_USER_FEEDBACK: 'llm-analytics-user-feedback', // owner: @adboio #team-surveysLLM_OBSERVABILITY_SHOW_INPUT_OUTPUT: 'llm-observability-show-input-output', // owner: #team-ai-observabilityLOGS: 'logs', // owner: #team-logs@@ -452,7 +434,6 @@ export const FEATURE_FLAGS = {PROJECT_SECRET_API_KEYS: 'project-secret-api-keys', // owner: #team-platform-featuresPROMOTED_EVENT_PROPERTIES_EDIT: 'promoted-event-properties-edit', // owner: @pauldambra #team-product-analytics, gates the primary-property picker on the event definition edit page (flag slug kept as `promoted-event-properties-edit` to avoid migrating teams that already toggled it on)PROMOTED_PRODUCT: 'promoted-product', // owner: @pauldambra #team-growth multivariate=control,control_b,intent,intent_plus, experiment for surfacing the team's primary onboarding product directly under Home- PROMPT_MANAGEMENT: 'prompt-management', // owner: #team-ai-observabilityPROPERTY_ACCESS_CONTROL: 'property-access-control', // owner: @reecejones #team-platform-featuresQUICK_START_PULSE_INDICATOR: 'quick-start-pulse-indicator', // owner: @fercgomes #team-growth multivariate=control,testRBAC_UI_REDESIGN: 'rbac-ui-redesign', // owner: @reece #team-platform-featuresdiff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 04c348d54aad..e91ce973d1f5 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -1775,7 +1775,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [iconType: 'llm_evaluations' as FileSystemIconType,iconColor: ['var(--color-product-llm-evaluations-light)'] as FileSystemIconColor,href: urls.aiObservabilityEvaluations(),- flag: FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS,sceneKey: 'AIObservabilityEvaluations',sceneKeys: ['AIObservability',@@ -2014,7 +2013,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [iconType: 'llm_prompts' as FileSystemIconType,iconColor: ['var(--color-product-llm-prompts-light)'] as FileSystemIconColor,href: urls.aiObservabilityPrompts(),- flag: FEATURE_FLAGS.PROMPT_MANAGEMENT,tags: ['beta'],sceneKey: 'AIObservabilityPrompts',sceneKeys: [@@ -2094,7 +2092,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [iconType: 'llm_prompts' as FileSystemIconType,iconColor: ['var(--color-product-llm-prompts-light)'] as FileSystemIconColor,href: urls.skills(),- flag: FEATURE_FLAGS.LLM_ANALYTICS_SKILLS,sceneKey: 'Skills',sceneKeys: ['Skills', 'Skill'],},diff --git a/products/ai_observability/frontend/AIObservabilityScene.tsx b/products/ai_observability/frontend/AIObservabilityScene.tsxindex 37535810dac0..871976cbbea2 100644--- a/products/ai_observability/frontend/AIObservabilityScene.tsx+++ b/products/ai_observability/frontend/AIObservabilityScene.tsx@@ -8,14 +8,11 @@ import { AccessControlAction } from 'lib/components/AccessControlAction'import { keyBinds } from 'lib/components/AppShortcuts/shortcuts'import { useAppShortcut } from 'lib/components/AppShortcuts/useAppShortcut'import { DateFilter } from 'lib/components/DateFilter/DateFilter'-import { NotFound } from 'lib/components/NotFound'import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'import { TestAccountFilterSwitch } from 'lib/components/TestAccountFiltersSwitch'-import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'import { Tooltip } from 'lib/lemon-ui/Tooltip'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { useAttachedLogic } from 'lib/logic/scenes/useAttachedLogic'import { objectsEqual } from 'lib/utils/objects'import { EventDetails } from 'scenes/activity/explore/EventDetails'@@ -185,7 +182,6 @@ function AIObservabilityGenerations(): JSX.Element {const { generationsQuery, expandedGenerationIds, loadedTraces, generationsSort } = useValues(aiObservabilityGenerationsLogic)- const { featureFlags } = useValues(featureFlagLogic)const { renderSortableColumnTitle } = useSortableColumns(generationsSort, setGenerationsSort)@@ -195,12 +191,7 @@ function AIObservabilityGenerations(): JSX.Element {return null}- const columns =- generationsQuery.source.select ||- getDefaultGenerationsColumns(- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT],- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_TAB]- )+ const columns = generationsQuery.source.select || getDefaultGenerationsColumns()const uuidIndex = columns.findIndex((col) => col === 'uuid')const traceIdIndex = columns.findIndex((col) => col === 'properties.$ai_trace_id')@@ -231,10 +222,7 @@ function AIObservabilityGenerations(): JSX.Element {query={{...generationsQuery,showSavedFilters: true,- defaultColumns: getDefaultGenerationsColumns(- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT],- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_TAB]- ),+ defaultColumns: getDefaultGenerationsColumns(),}}setQuery={(query) => {if (!isEventsQuery(query.source)) {@@ -458,9 +446,7 @@ export function AIObservabilityScene(): JSX.Element {function AIObservabilitySceneContent(): JSX.Element {const { activeTab } = useValues(aiObservabilitySharedLogic)- const { featureFlags } = useValues(featureFlagLogic)const { searchParams } = useValues(router)- const isTraceReviewEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRACE_REVIEW]const { push } = useActions(router)@@ -561,69 +547,54 @@ function AIObservabilitySceneContent(): JSX.Element {'data-attr': 'errors-tab',})- const isEarlyAdopter = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]-- if (featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_TAB]) {- tabs.push({- key: 'tools',- label: 'Tools',- content: (- <AIObservabilitySetupPrompt>- <AIObservabilityTools />- </AIObservabilitySetupPrompt>- ),- link: combineUrl(urls.aiObservabilityTools(), searchParams).url,- 'data-attr': 'tools-tab',- })- }-- if (featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT_TAB]) {- tabs.push({- key: 'sentiment',- label: 'Sentiment',- content: (- <AIObservabilitySetupPrompt>- <Filters />- <AIObservabilitySentiment />- </AIObservabilitySetupPrompt>- ),- link: combineUrl(urls.aiObservabilitySentiment(), searchParams).url,- 'data-attr': 'llma-sentiment-tab',- })- }+ tabs.push({+ key: 'tools',+ label: 'Tools',+ content: (+ <AIObservabilitySetupPrompt>+ <AIObservabilityTools />+ </AIObservabilitySetupPrompt>+ ),+ link: combineUrl(urls.aiObservabilityTools(), searchParams).url,+ 'data-attr': 'tools-tab',+ })- // TODO: Once we remove FF, should add to the shortcuts list at the top of the component- if (featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SESSIONS_VIEW] || isEarlyAdopter) {- tabs.push({- key: 'sessions',- label: 'Sessions',- content: (- <AIObservabilitySetupPrompt>- <AIObservabilitySessionsScene />- </AIObservabilitySetupPrompt>- ),- link: combineUrl(urls.aiObservabilitySessions(), searchParams).url,- 'data-attr': 'sessions-tab',- })- }+ tabs.push({+ key: 'sentiment',+ label: 'Sentiment',+ content: (+ <AIObservabilitySetupPrompt>+ <Filters />+ <AIObservabilitySentiment />+ </AIObservabilitySetupPrompt>+ ),+ link: combineUrl(urls.aiObservabilitySentiment(), searchParams).url,+ 'data-attr': 'llma-sentiment-tab',+ })- if (isTraceReviewEnabled) {- tabs.push({- key: 'reviews',- label: 'Reviews',- content: (- <AIObservabilitySetupPrompt thing="trace">- <AIObservabilityHumanReviews />- </AIObservabilitySetupPrompt>- ),- link: combineUrl(urls.aiObservabilityReviews(), searchParams).url,- 'data-attr': 'llma-reviews-tab',- })- }+ tabs.push({+ key: 'sessions',+ label: 'Sessions',+ content: (+ <AIObservabilitySetupPrompt>+ <AIObservabilitySessionsScene />+ </AIObservabilitySetupPrompt>+ ),+ link: combineUrl(urls.aiObservabilitySessions(), searchParams).url,+ 'data-attr': 'sessions-tab',+ })- if (activeTab === 'reviews' && !isTraceReviewEnabled) {- return <NotFound object="page" />- }+ tabs.push({+ key: 'reviews',+ label: 'Reviews',+ content: (+ <AIObservabilitySetupPrompt thing="trace">+ <AIObservabilityHumanReviews />+ </AIObservabilitySetupPrompt>+ ),+ link: combineUrl(urls.aiObservabilityReviews(), searchParams).url,+ 'data-attr': 'llma-reviews-tab',+ })return (<SceneContent>diff --git a/products/ai_observability/frontend/AIObservabilitySessionScene.tsx b/products/ai_observability/frontend/AIObservabilitySessionScene.tsxindex 74fba20d227f..51c2775846e9 100644--- a/products/ai_observability/frontend/AIObservabilitySessionScene.tsx+++ b/products/ai_observability/frontend/AIObservabilitySessionScene.tsx@@ -92,7 +92,6 @@ function SessionTraceSentimentBar({ traceId, createdAt }: { traceId: string; crefunction SessionSceneWrapper(): JSX.Element {const { featureFlags } = useValues(featureFlagLogic)const showFeedback = !!featureFlags[FEATURE_FLAGS.POSTHOG_AI_CONVERSATION_FEEDBACK_LLMA_SESSIONS]- const showSentiment = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT]const { traces, responseLoading, responseError, sessionTurns, hasMoreData, nextDataLoading, summariesLoading } =useValues(aiObservabilitySessionDataLogic)@@ -106,10 +105,6 @@ function SessionSceneWrapper(): JSX.Element {const { searchParams } = useValues(router)const traceSearchParams = sanitizeTraceUrlSearchParams(searchParams, { removeSearch: true })- const showSessionSummarization =- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SESSION_SUMMARIZATION] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]-// Calculate session aggregatesconst sessionStats = traces.reduce((acc, trace) => ({@@ -170,24 +165,16 @@ function SessionSceneWrapper(): JSX.Element {</Suspense>)}</div>- {showSessionSummarization && (- <SummarizeAllButton- loading={summariesLoading}- dataProcessingAccepted={dataProcessingAccepted}- onSummarize={summarizeAllTraces}- />- )}+ <SummarizeAllButton+ loading={summariesLoading}+ dataProcessingAccepted={dataProcessingAccepted}+ onSummarize={summarizeAllTraces}+ /></header><div className="flex flex-col">{sessionTurns.map((turn) => (- <SessionTurnView- key={turn.trace.id}- turn={turn}- showSentiment={showSentiment}- showSessionSummarization={!!showSessionSummarization}- traceSearchParams={traceSearchParams}- />+ <SessionTurnView key={turn.trace.id} turn={turn} traceSearchParams={traceSearchParams} />))}{hasMoreData && (<div className="flex justify-center pt-4">@@ -255,13 +242,9 @@ function SummarizeAllButton({function SessionTurnView({turn,- showSentiment,- showSessionSummarization,traceSearchParams,}: {turn: SessionTurn- showSentiment: boolean- showSessionSummarization: booleantraceSearchParams: Record<string, unknown>}): JSX.Element {const { traceSummaries, loadingFullTraces, fullTraces, stepsExpandedTraceIds, expandedGenerationIds } = useValues(@@ -295,9 +278,7 @@ function SessionTurnView({</div><div className="flex gap-10 pb-4"><div className="flex-1 min-w-0 flex flex-col gap-2">- {showSessionSummarization && summary && (- <TurnSummaryLine summary={summary} summaryUrl={summaryUrl} />- )}+ {summary && <TurnSummaryLine summary={summary} summaryUrl={summaryUrl} />}<TurnBody turn={turn} isLoading={isLoading} onLoad={() => loadFullTrace(trace.id)} />@@ -349,7 +330,7 @@ function SessionTurnView({</div><div className="w-40 shrink-0 flex flex-col gap-1 text-xs text-muted">- {showSentiment && <SessionTraceSentimentBar traceId={trace.id} createdAt={trace.createdAt} />}+ <SessionTraceSentimentBar traceId={trace.id} createdAt={trace.createdAt} /><div className="flex flex-col gap-1 items-start">{hasTranscript && (<LemonButton size="xsmall" type="tertiary" onClick={() => toggleSteps(trace.id)}>diff --git a/products/ai_observability/frontend/AIObservabilityTools.tsx b/products/ai_observability/frontend/AIObservabilityTools.tsxindex 6b3b655aa542..86c2df286b8f 100644--- a/products/ai_observability/frontend/AIObservabilityTools.tsx+++ b/products/ai_observability/frontend/AIObservabilityTools.tsx@@ -3,11 +3,9 @@ import { combineUrl, router } from 'kea-router'import { IconGraph, IconRetentionHeatmap, IconTrends, IconUserPaths } from '@posthog/icons'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { Link } from 'lib/lemon-ui/Link'import { Tooltip } from 'lib/lemon-ui/Tooltip'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { escapeRegex } from 'lib/utils/actions'import { urls } from 'scenes/urls'@@ -33,9 +31,7 @@ export function AIObservabilityTools(): JSX.Element {buildAllToolsTrendQuery,buildToolHeatmapQuery,} = useValues(aiObservabilityToolsLogic)- const { featureFlags } = useValues(featureFlagLogic)const { searchParams } = useValues(router)- const showToolsCharts = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_CHARTS]const { renderSortableColumnTitle } = useSortableColumns(toolsSort, setToolsSort)@@ -64,34 +60,32 @@ export function AIObservabilityTools(): JSX.Element {)}}context={{- customActions: showToolsCharts- ? [- <Tooltip title="View tool usage trends over time" key="trends">- <LemonButton- icon={<IconTrends />}- size="small"- type="secondary"- to={urls.insightNew({ query: buildAllToolsTrendQuery })}- targetBlank- data-attr="llma-tools-all-trends-click"- >- Tool trends- </LemonButton>- </Tooltip>,- <Tooltip title="View tool co-occurrence heatmap" key="heatmap">- <LemonButton- icon={<IconRetentionHeatmap />}- size="small"- type="secondary"- to={urls.insightNew({ query: buildToolHeatmapQuery })}- targetBlank- data-attr="llma-tools-heatmap-click"- >- Tool co-occurrence- </LemonButton>- </Tooltip>,- ]- : undefined,+ customActions: [+ <Tooltip title="View tool usage trends over time" key="trends">+ <LemonButton+ icon={<IconTrends />}+ size="small"+ type="secondary"+ to={urls.insightNew({ query: buildAllToolsTrendQuery })}+ targetBlank+ data-attr="llma-tools-all-trends-click"+ >+ Tool trends+ </LemonButton>+ </Tooltip>,+ <Tooltip title="View tool co-occurrence heatmap" key="heatmap">+ <LemonButton+ icon={<IconRetentionHeatmap />}+ size="small"+ type="secondary"+ to={urls.insightNew({ query: buildToolHeatmapQuery })}+ targetBlank+ data-attr="llma-tools-heatmap-click"+ >+ Tool co-occurrence+ </LemonButton>+ </Tooltip>,+ ],columns: {tool: {render: function RenderTool(x) {@@ -125,52 +119,48 @@ export function AIObservabilityTools(): JSX.Element {{toolString}</Link></Tooltip>- {showToolsCharts && (- <>- <Tooltip title={`View ${toolString} usage over time`}>- <LemonButton- icon={<IconTrends />}- size="xsmall"- to={urls.insightNew({- query: {- kind: NodeKind.InsightVizNode,- source: buildToolTrendQuery(toolString),- } as InsightVizNode,- })}- targetBlank- data-attr="llma-tools-trend-click"- />- </Tooltip>- <Tooltip title={`View tool combinations with ${toolString}`}>- <LemonButton- icon={<IconGraph />}- size="xsmall"- to={urls.insightNew({- query: {- kind: NodeKind.InsightVizNode,- source: buildToolSequencesQuery(toolString),- } as InsightVizNode,- })}- targetBlank- data-attr="llma-tools-sequences-click"- />- </Tooltip>- <Tooltip title={`View tool paths from ${toolString}`}>- <LemonButton- icon={<IconUserPaths />}- size="xsmall"- to={urls.insightNew({- query: {- kind: NodeKind.InsightVizNode,- source: buildToolPathsQuery(toolString),- } as InsightVizNode,- })}- targetBlank- data-attr="llma-tools-paths-click"- />- </Tooltip>- </>- )}+ <Tooltip title={`View ${toolString} usage over time`}>+ <LemonButton+ icon={<IconTrends />}+ size="xsmall"+ to={urls.insightNew({+ query: {+ kind: NodeKind.InsightVizNode,+ source: buildToolTrendQuery(toolString),+ } as InsightVizNode,+ })}+ targetBlank+ data-attr="llma-tools-trend-click"+ />+ </Tooltip>+ <Tooltip title={`View tool combinations with ${toolString}`}>+ <LemonButton+ icon={<IconGraph />}+ size="xsmall"+ to={urls.insightNew({+ query: {+ kind: NodeKind.InsightVizNode,+ source: buildToolSequencesQuery(toolString),+ } as InsightVizNode,+ })}+ targetBlank+ data-attr="llma-tools-sequences-click"+ />+ </Tooltip>+ <Tooltip title={`View tool paths from ${toolString}`}>+ <LemonButton+ icon={<IconUserPaths />}+ size="xsmall"+ to={urls.insightNew({+ query: {+ kind: NodeKind.InsightVizNode,+ source: buildToolPathsQuery(toolString),+ } as InsightVizNode,+ })}+ targetBlank+ data-attr="llma-tools-paths-click"+ />+ </Tooltip></div>)},diff --git a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx b/products/ai_observability/frontend/AIObservabilityTraceScene.tsxindex 13d40996a0d3..b03cc566f2c7 100644--- a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx+++ b/products/ai_observability/frontend/AIObservabilityTraceScene.tsx@@ -522,23 +522,20 @@ function TraceSceneWrapper(): JSX.Element {/><div className="flex flex-wrap justify-end items-center gap-x-2 gap-y-1"><DisplayOptionsSelect />- {(featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_DISCUSSIONS] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]) && (- <LemonButton- type="secondary"- size="xsmall"- icon={- <IconWithCount count={commentCount} showZero={false}>- <IconComment />- </IconWithCount>- }- onClick={() => openSidePanel(SidePanelTab.Discussion)}- tooltip="Add comments on this trace"- data-attr="open-trace-discussion"- >- Discussion- </LemonButton>- )}+ <LemonButton+ type="secondary"+ size="xsmall"+ icon={+ <IconWithCount count={commentCount} showZero={false}>+ <IconComment />+ </IconWithCount>+ }+ onClick={() => openSidePanel(SidePanelTab.Discussion)}+ tooltip="Add comments on this trace"+ data-attr="open-trace-discussion"+ >+ Discussion+ </LemonButton><ShareTraceButton trace={trace} tree={enrichedTree} /></div></div>@@ -1003,15 +1000,13 @@ function TraceMetadata({markupUsd?: numbershowBillingInfo?: boolean}): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)const { personsCache } = useValues(llmPersonsLazyLoaderLogic)const { getTraceSentiment, isTraceLoading } = useValues(llmSentimentLazyLoaderLogic)const { ensureSentimentLoaded } = useActions(llmSentimentLazyLoaderLogic)- const showSentiment = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT]- const sentimentResult = showSentiment ? getTraceSentiment(trace.id) : undefined- const sentimentLoading = showSentiment ? isTraceLoading(trace.id) : false- if (showSentiment && sentimentResult === undefined && !sentimentLoading) {+ const sentimentResult = getTraceSentiment(trace.id)+ const sentimentLoading = isTraceLoading(trace.id)+ if (sentimentResult === undefined && !sentimentLoading) {ensureSentimentLoaded(trace.id, {dateFrom: trace.createdAt,dateTo: dayjs(trace.createdAt).add(SENTIMENT_DATE_WINDOW_DAYS, 'day').toISOString(),@@ -1027,24 +1022,7 @@ function TraceMetadata({: { distinct_id: trace.distinctId }const getSessionUrl = (sessionId: string): string => {- if (- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SESSIONS_VIEW] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- ) {- return urls.aiObservabilitySession(sessionId, { timestamp: getSessionStartTimestamp(trace.createdAt) })- }- // Fallback to filtering traces by session when feature flag is off- const filter = [- {- key: '$ai_session_id',- value: [sessionId],- operator: 'exact',- type: 'event',- },- ]- const params = new URLSearchParams()- params.set('filters', JSON.stringify(filter))- return `${urls.aiObservabilityTraces()}?${params.toString()}`+ return urls.aiObservabilitySession(sessionId, { timestamp: getSessionStartTimestamp(trace.createdAt) })}return (@@ -1053,14 +1031,7 @@ function TraceMetadata({<PersonDisplay withIcon="sm" person={personData} /></Chip>{trace.aiSessionId && (- <Chip- title={- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SESSIONS_VIEW] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- ? 'AI Session ID - Click to view session details'- : 'AI Session ID - Click to filter traces by this session'- }- >+ <Chip title="AI Session ID - Click to view session details"><Link to={getSessionUrl(trace.aiSessionId)} subtle><span className="font-mono">{trace.aiSessionId.slice(0, 8)}...</span></Link>@@ -1108,11 +1079,9 @@ function TraceSidebar({}): JSX.Element {const traceLogic = useMountedLogic(aiObservabilityTraceLogic)useMountedLogic(aiObservabilityTraceDataLogic)- const { featureFlags } = useValues(featureFlagLogic)const { searchOccurrences } = useValues(aiObservabilityTraceDataLogic)const { searchQuery } = useValues(traceLogic)const { setSearchQuery } = useActions(traceLogic)- const showTraceWorkflow = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRACE_REVIEW]const [searchValue, setSearchValue] = useState(searchQuery)@@ -1134,7 +1103,7 @@ function TraceSidebar({className="flex flex-col gap-3 w-full md:w-80 md:min-h-0 md:self-start md:max-h-full"id="trace-events-sidebar">- {showTraceWorkflow ? <TraceWorkflowPanel traceId={trace.id} /> : null}+ <TraceWorkflowPanel traceId={trace.id} /><div className="border border-primary bg-surface-primary rounded overflow-hidden flex flex-col flex-1 min-h-0"><h3 className="font-medium text-sm px-2 my-2">Tree</h3><LemonDivider className="m-0" />@@ -1239,7 +1208,6 @@ const TreeNode = React.memo(function TraceNode({const traceLogic = useMountedLogic(aiObservabilityTraceLogic)const { eventTypeExpanded } = useValues(traceLogic)const { searchParams } = useValues(router)- const { featureFlags } = useValues(featureFlagLogic)const { getGenerationSentiment, isGenerationLoading } = useValues(llmGenerationSentimentLazyLoaderLogic)const { ensureGenerationSentimentLoaded } = useActions(llmGenerationSentimentLazyLoaderLogic)const eventType = getEventType(item)@@ -1250,10 +1218,9 @@ const TreeNode = React.memo(function TraceNode({(item as LLMTraceEvent).event === '$ai_generation' &&!!(item as LLMTraceEvent).properties?.$ai_billable- const showSentiment = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT]const isGeneration = isLLMEvent(item) && (item as LLMTraceEvent).event === '$ai_generation'- const genSentiment = showSentiment && isGeneration ? getGenerationSentiment(item.id) : undefined- if (showSentiment && isGeneration && genSentiment === undefined && !isGenerationLoading(item.id)) {+ const genSentiment = isGeneration ? getGenerationSentiment(item.id) : undefined+ if (isGeneration && genSentiment === undefined && !isGenerationLoading(item.id)) {ensureGenerationSentimentLoaded(item.id, {dateFrom: topLevelTrace.createdAt,dateTo: dayjs(topLevelTrace.createdAt).add(SENTIMENT_DATE_WINDOW_DAYS, 'day').toISOString(),@@ -1497,7 +1464,7 @@ const EventContent = React.memo(const showSaveToDatasetButton = featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_DATASETS]- const showEvalsTab = effectiveGenerationEvent && !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS]+ const showEvalsTab = !!effectiveGenerationEventconst showTagsTab = effectiveGenerationEvent && !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TAGS]// If the user is viewing the Tags tab but it's no longer available (flag off or@@ -1509,9 +1476,7 @@ const EventContent = React.memo(}}, [viewMode, showTagsTab, setViewMode])- const showSummaryTab =- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SUMMARIZATION] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]+ const showSummaryTab = trueconst showFeedbackTab = true@@ -1700,9 +1665,7 @@ const EventContent = React.memo(</>}/>- ) : displayOption === DisplayOption.TextView &&- (featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TEXT_VIEW] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]) ? (+ ) : displayOption === DisplayOption.TextView ? (isLLMEvent(event) &&(event.event === '$ai_generation' ||event.event === '$ai_span' ||@@ -1959,7 +1922,6 @@ function DisplayOptionsSelect(): JSX.Element {const traceLogic = useMountedLogic(aiObservabilityTraceLogic)const { displayOption } = useValues(traceLogic)const { setDisplayOption } = useActions(traceLogic)- const { featureFlags } = useValues(featureFlagLogic)const displayOptions = [{@@ -1980,17 +1942,12 @@ function DisplayOptionsSelect(): JSX.Element {tooltip: 'Focus on the most recent input and final output','data-attr': 'llma-trace-display-expand-last',},- ...(featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TEXT_VIEW] ||- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- ? [- {- value: DisplayOption.TextView,- label: 'Text view',- tooltip: 'Simple human readable text view, for humans',- 'data-attr': 'llma-trace-display-text-view',- },- ]- : []),+ {+ value: DisplayOption.TextView,+ label: 'Text view',+ tooltip: 'Simple human readable text view, for humans',+ 'data-attr': 'llma-trace-display-text-view',+ },]return (diff --git a/products/ai_observability/frontend/AIObservabilityTracesScene.tsx b/products/ai_observability/frontend/AIObservabilityTracesScene.tsxindex 40914237298d..cd2f6d7c766e 100644--- a/products/ai_observability/frontend/AIObservabilityTracesScene.tsx+++ b/products/ai_observability/frontend/AIObservabilityTracesScene.tsx@@ -92,11 +92,6 @@ function TracesOptionsMenu(): JSX.Element | null {const { setShowInputOutputColumns, setShowSentimentColumn } = useActions(aiObservabilityTracesTabLogic)const showInputOutputToggleEnabled = !!featureFlags[FEATURE_FLAGS.LLM_OBSERVABILITY_SHOW_INPUT_OUTPUT]- const showSentimentToggleEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT]-- if (!showInputOutputToggleEnabled && !showSentimentToggleEnabled) {- return null- }return (<LemonDropdown@@ -114,16 +109,14 @@ function TracesOptionsMenu(): JSX.Element | null {data-attr="llm-traces-show-input-output-toggle"/>)}- {showSentimentToggleEnabled && (- <LemonSwitch- checked={showSentimentColumn}- onChange={setShowSentimentColumn}- label="Show sentiment"- fullWidth- tooltip="Show the sentiment column. Turn off to skip computing sentiment for traces in the table."- data-attr="llm-traces-show-sentiment-toggle"- />- )}+ <LemonSwitch+ checked={showSentimentColumn}+ onChange={setShowSentimentColumn}+ label="Show sentiment"+ fullWidth+ tooltip="Show the sentiment column. Turn off to skip computing sentiment for traces in the table."+ data-attr="llm-traces-show-sentiment-toggle"+ /></div>}>diff --git a/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx b/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsxindex cc11d9a67a30..e06911492def 100644--- a/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx+++ b/products/ai_observability/frontend/ConversationDisplay/MessageActionsMenu.tsx@@ -3,9 +3,7 @@ import { useActions, useValues } from 'kea'import { IconEllipsis } from '@posthog/icons'import { LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonButton } from 'lib/lemon-ui/LemonButton'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'import { commentsLogic } from 'scenes/comments/commentsLogic'import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'@@ -26,7 +24,6 @@ export interface MessageActionsMenuProps {}export const MessageActionsMenu = ({ content, traceId }: MessageActionsMenuProps): JSX.Element | null => {- const { featureFlags } = useValues(featureFlagLogic)const { openSidePanel } = useActions(sidePanelStateLogic)const commentsLogicProps = {scope: ActivityScope.LLM_TRACE,@@ -70,9 +67,7 @@ export const MessageActionsMenu = ({ content, traceId }: MessageActionsMenuPropssetTimeout(() => insertQuoteIntoEditor(quotedContent), EDITOR_RETRY_DELAY_MS)}- const isEarlyAdopter = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- const showDiscussions = !!traceId && (isEarlyAdopter || !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_DISCUSSIONS])- const showTranslation = isEarlyAdopter || !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRANSLATION]+ const showDiscussions = !!traceIdconst accessControlDisabledReason = getAccessControlDisabledReason(AccessControlResourceType.LlmAnalytics,@@ -89,22 +84,18 @@ export const MessageActionsMenu = ({ content, traceId }: MessageActionsMenuProps},]: []),- ...(showTranslation- ? [- {- label: 'Translate',- disabledReason: accessControlDisabledReason ?? undefined,- onClick: () => {- if (dataProcessingAccepted) {- setShowTranslatePopover(true)- } else {- setShowConsentPopover(true)- }- },- 'data-attr': 'llma-message-translate',- },- ]- : []),+ {+ label: 'Translate',+ disabledReason: accessControlDisabledReason ?? undefined,+ onClick: () => {+ if (dataProcessingAccepted) {+ setShowTranslatePopover(true)+ } else {+ setShowConsentPopover(true)+ }+ },+ 'data-attr': 'llma-message-translate',+ },]if (menuItems.length === 0) {diff --git a/products/ai_observability/frontend/aiObservabilityTraceDataLogic.ts b/products/ai_observability/frontend/aiObservabilityTraceDataLogic.tsindex 04d6d1bda9dd..ca28b2b61046 100644--- a/products/ai_observability/frontend/aiObservabilityTraceDataLogic.ts+++ b/products/ai_observability/frontend/aiObservabilityTraceDataLogic.ts@@ -2,9 +2,7 @@ import { actions, connect, kea, key, listeners, path, props, reducers, selectorsimport { subscriptions } from 'kea-subscriptions'import posthog from 'posthog-js'-import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { getAppContext } from 'lib/utils/getAppContext'import { DataNodeLogicProps, dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'@@ -193,8 +191,6 @@ export const aiObservabilityTraceDataLogic = kea<aiObservabilityTraceDataLogicTy['eventId', 'searchQuery', 'initialTab'],dataNodeLogic(getDataNodeLogicProps(props)),['elapsedTime', 'response', 'responseLoading', 'responseError'],- featureFlagLogic,- ['featureFlags'],],actions: [aiObservabilityTraceLogic, ['setEventId']],})),@@ -508,7 +504,7 @@ export const aiObservabilityTraceDataLogic = kea<aiObservabilityTraceDataLogicTyllmPersonsLazyLoaderLogic.actions.ensurePersonLoaded(trace.distinctId)}- if (trace?.id && values.featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT]) {+ if (trace?.id) {llmSentimentLazyLoaderLogic.actions.ensureSentimentLoaded(trace.id, {dateFrom: trace.createdAt,dateTo: dayjs(trace.createdAt).add(SENTIMENT_DATE_WINDOW_DAYS, 'day').toISOString(),diff --git a/products/ai_observability/frontend/aiObservabilityTraceLogic.ts b/products/ai_observability/frontend/aiObservabilityTraceLogic.tsindex 0e48782e44f1..2bdd2904bb0b 100644--- a/products/ai_observability/frontend/aiObservabilityTraceLogic.ts+++ b/products/ai_observability/frontend/aiObservabilityTraceLogic.ts@@ -251,13 +251,7 @@ export const aiObservabilityTraceLogic = kea<aiObservabilityTraceLogicType>([0,{loadCommentCount: async (_, breakpoint) => {- if (- !values.traceId ||- !(- values.featureFlags?.[FEATURE_FLAGS.LLM_ANALYTICS_DISCUSSIONS] ||- values.featureFlags?.[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- )- ) {+ if (!values.traceId) {return 0}@@ -385,16 +379,13 @@ export const aiObservabilityTraceLogic = kea<aiObservabilityTraceLogicType>([olderTraceId: [(s) => [s.neighbors], (neighbors) => neighbors?.olderTraceId ?? null],olderTimestamp: [(s) => [s.neighbors], (neighbors) => neighbors?.olderTimestamp ?? null],[SIDE_PANEL_CONTEXT_KEY]: [- (s) => [s.traceId, s.featureFlags],- (traceId, featureFlags): SidePanelSceneContext => {+ (s) => [s.traceId],+ (traceId): SidePanelSceneContext => {// Discussions are always at the trace level, accessible from anywhere in the tracereturn {activity_scope: ActivityScope.LLM_TRACE,activity_item_id: traceId || '',- discussions_disabled: !(- featureFlags?.[FEATURE_FLAGS.LLM_ANALYTICS_DISCUSSIONS] ||- featureFlags?.[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- ),+ discussions_disabled: false,activity_item_context: { trace_id: traceId || '' },}},diff --git a/products/ai_observability/frontend/clusters/ClusteringAdminModal.tsx b/products/ai_observability/frontend/clusters/ClusteringAdminModal.tsxindex e93c4cb6771a..daf249f78368 100644--- a/products/ai_observability/frontend/clusters/ClusteringAdminModal.tsx+++ b/products/ai_observability/frontend/clusters/ClusteringAdminModal.tsx@@ -4,16 +4,12 @@ import { LemonButton, LemonInput, LemonModal, LemonSegmentedButton, LemonSelectimport { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { DEFAULT_CLUSTERING_PARAMS, clustersAdminLogic } from './clustersAdminLogic'export function ClusteringAdminModal(): JSX.Element {const { isModalOpen, params, isRunning } = useValues(clustersAdminLogic)const { closeModal, setParams, triggerClusteringRun, resetParams } = useActions(clustersAdminLogic)- const { featureFlags } = useValues(featureFlagLogic)- const evaluationsEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_CLUSTERING]return (<LemonModal@@ -61,21 +57,16 @@ export function ClusteringAdminModal(): JSX.Element {options={[{ value: 'trace', label: 'Traces' },{ value: 'generation', label: 'Generations' },- ...(evaluationsEnabled ? [{ value: 'evaluation' as const, label: 'Evaluations' }] : []),+ { value: 'evaluation' as const, label: 'Evaluations' },]}fullWidthdata-attr="clusters-admin-level"/><div className="text-xs text-muted mt-2"><strong>Traces:</strong> Cluster entire conversation traces. <strong>Generations:</strong>{' '}- Cluster individual LLM generations for finer-grained analysis.- {evaluationsEnabled && (- <>- {' '}- <strong>Evaluations:</strong> Cluster $ai_evaluation events by their verdict and- reasoning to see patterns in what evaluators flag.- </>- )}+ Cluster individual LLM generations for finer-grained analysis. <strong>Evaluations:</strong>{' '}+ Cluster $ai_evaluation events by their verdict and reasoning to see patterns in what evaluators+ flag.</div></div>diff --git a/products/ai_observability/frontend/clusters/ClusteringJobsPanel.tsx b/products/ai_observability/frontend/clusters/ClusteringJobsPanel.tsxindex 7ae6645e9a08..b70d6907029a 100644--- a/products/ai_observability/frontend/clusters/ClusteringJobsPanel.tsx+++ b/products/ai_observability/frontend/clusters/ClusteringJobsPanel.tsx@@ -15,8 +15,6 @@ import {import { PropertyFilters } from 'lib/components/PropertyFilters/PropertyFilters'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import type { AnyPropertyFilter } from '~/types'@@ -58,8 +56,6 @@ function JobEditor({(job.event_filters as AnyPropertyFilter[] | undefined) ?? [])const [enabled, setEnabled] = useState(job.enabled ?? true)- const { featureFlags } = useValues(featureFlagLogic)- const evaluationsEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_CLUSTERING]return (<div className="space-y-4">@@ -75,7 +71,7 @@ function JobEditor({options={[{ value: 'trace', label: 'Traces' },{ value: 'generation', label: 'Generations' },- ...(evaluationsEnabled ? [{ value: 'evaluation' as const, label: 'Evaluations' }] : []),+ { value: 'evaluation' as const, label: 'Evaluations' },]}size="small"/>@@ -134,20 +130,8 @@ function JobEditor({export function ClusteringJobsPanel(): JSX.Element {const { isJobsPanelOpen, jobs, jobsLoading, editingJob } = useValues(clusteringJobsLogic)const { closeJobsPanel, setEditingJob, createJob, updateJob, deleteJob } = useActions(clusteringJobsLogic)- const { featureFlags } = useValues(featureFlagLogic)- const evaluationsEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_CLUSTERING]- // Hide only the auto-seeded "Default - evaluations" row from the admin- // list when the FF is off, so teams that aren't on the feature yet don't- // see a mystery default row they didn't create. Any custom evaluation- // jobs (rename of the default, or created explicitly when the FF was on- // and later toggled off) stay visible — otherwise we'd leave hidden-but-- // still-scheduled jobs with no UI surface to manage them.- const visibleJobs = evaluationsEnabled- ? jobs- : jobs.filter(- (job: ClusteringJob) => !(job.analysis_level === 'evaluation' && job.name === 'Default - evaluations')- )+ const visibleJobs = jobsreturn (<LemonModaldiff --git a/products/ai_observability/frontend/clusters/ClustersView.tsx b/products/ai_observability/frontend/clusters/ClustersView.tsxindex 692acc2a3c7f..881588ce2248 100644--- a/products/ai_observability/frontend/clusters/ClustersView.tsx+++ b/products/ai_observability/frontend/clusters/ClustersView.tsx@@ -56,15 +56,13 @@ export function ClustersView(): JSX.Element {const { openJobsPanel } = useActions(clusteringJobsLogic)const showAdminPanel = featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_CLUSTERING_ADMIN]- const evaluationsEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_CLUSTERING]const levelOptions: { value: ClusteringLevel; label: string }[] = [{ value: 'trace', label: 'Traces' },{ value: 'generation', label: 'Generations' },- ...(evaluationsEnabled ? [{ value: 'evaluation' as const, label: 'Evaluations' }] : []),+ { value: 'evaluation' as const, label: 'Evaluations' },]- const levelTooltip = evaluationsEnabled- ? 'Traces cluster entire conversations, generations cluster individual LLM calls, and evaluations cluster $ai_evaluation events by evaluator name, verdict, and reasoning'- : 'Traces cluster entire conversations, while generations cluster individual LLM calls'+ const levelTooltip =+ 'Traces cluster entire conversations, generations cluster individual LLM calls, and evaluations cluster $ai_evaluation events by evaluator name, verdict, and reasoning'// Build a map from job_id to job name for run labelsconst jobNameById: Record<string, string> = {}diff --git a/products/ai_observability/frontend/components/AIObservabilityEventCard.tsx b/products/ai_observability/frontend/components/AIObservabilityEventCard.tsxindex 3da6b81773d4..b6acbf2c8fac 100644--- a/products/ai_observability/frontend/components/AIObservabilityEventCard.tsx+++ b/products/ai_observability/frontend/components/AIObservabilityEventCard.tsx@@ -3,9 +3,6 @@ import { useValues } from 'kea'import { IconChevronDown, IconChevronRight } from '@posthog/icons'import { LemonTag, Tooltip } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { EventDetails } from '~/scenes/activity/explore/EventDetails'import { EventType } from '~/types'@@ -32,7 +29,6 @@ export function AIObservabilityEventCard({onToggleExpand,traceId,}: AIObservabilityEventCardProps): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)const { getGenerationSentiment } = useValues(llmGenerationSentimentLazyLoaderLogic)const isGeneration = event.event === '$ai_generation'@@ -111,7 +107,6 @@ export function AIObservabilityEventCard({)}{isGeneration &&traceId &&- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT] &&(() => {const genSentiment = getGenerationSentiment(event.id)return genSentiment ? (diff --git a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsxindex 1cd9087f90e2..3240381d5eb8 100644--- a/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx+++ b/products/ai_observability/frontend/evaluations/AIObservabilityEvaluation.tsx@@ -223,16 +223,12 @@ export function AIObservabilityEvaluation(): JSX.Element {push(combineUrl(urls.aiObservabilityEvaluations(), searchParams).url)}- const hogEvaluationMethodOptions: { value: EvaluationType; label: string }[] = featureFlags[- FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_HOG_CODE+ const hogEvaluationMethodOptions: { value: EvaluationType; label: string }[] = [+ {+ value: 'hog',+ label: 'Hog code',+ },]- ? [- {- value: 'hog',- label: 'Hog code',- },- ]- : []const sentimentEvaluationMethodOptions: { value: EvaluationType; label: string }[] =evaluationTypeCanBeCreated('sentiment', featureFlags) || isSentiment? [@@ -554,10 +550,9 @@ export function AIObservabilityEvaluation(): JSX.Element {)}{/* Judge Model Configuration (LLM judge only) */}- {evaluationTypeUsesModelConfiguration(evaluation.evaluation_type) &&- featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS_CUSTOM_MODELS] && (- <EvaluationModelPicker />- )}+ {evaluationTypeUsesModelConfiguration(evaluation.evaluation_type) && (+ <EvaluationModelPicker />+ )}{/* Trigger Configuration */}<div ref={triggersRef} className="bg-bg-light border rounded p-6">diff --git a/products/ai_observability/frontend/evaluations/components/EvaluationSummaryPanel.tsx b/products/ai_observability/frontend/evaluations/components/EvaluationSummaryPanel.tsxindex 43f3cfdb10c4..4f52edd23108 100644--- a/products/ai_observability/frontend/evaluations/components/EvaluationSummaryPanel.tsx+++ b/products/ai_observability/frontend/evaluations/components/EvaluationSummaryPanel.tsx@@ -4,7 +4,6 @@ import { IconCheck, IconChevronDown, IconMinus, IconX } from '@posthog/icons'import { LemonButton, LemonSegmentedButton, Spinner, Tooltip } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { AccessControlLevel, AccessControlResourceType } from '~/types'@@ -55,12 +54,6 @@ const BASE_FILTER_OPTIONS: FilterOption[] = [const NA_FILTER_OPTION: FilterOption = { value: 'na', label: 'N/A' }-function useShowEvaluationSummary(): boolean {- const summaryFlag = useFeatureFlag('LLM_ANALYTICS_EVALUATIONS_SUMMARY')- const earlyAdoptersFlag = useFeatureFlag('LLM_ANALYTICS_EARLY_ADOPTERS')- return summaryFlag || earlyAdoptersFlag-}-export function EvaluationSummaryControls(): JSX.Element | null {const {evaluation,@@ -76,9 +69,8 @@ export function EvaluationSummaryControls(): JSX.Element | null {setEvaluationSummaryFilter,trackSummarizeClicked,} = useActions(llmEvaluationLogic)- const showSummaryFeature = useShowEvaluationSummary()- if (!showSummaryFeature || !runsSummary || runsSummary.total === 0) {+ if (!runsSummary || runsSummary.total === 0) {return null}@@ -135,11 +127,6 @@ export function EvaluationSummaryPanel({ runsLookup }: EvaluationSummaryPanelProsummaryExpanded,} = useValues(llmEvaluationLogic)const { toggleSummaryExpanded } = useActions(llmEvaluationLogic)- const showSummaryFeature = useShowEvaluationSummary()-- if (!showSummaryFeature) {- return null- }if (evaluationSummaryLoading) {return (diff --git a/products/ai_observability/frontend/playground/PlaygroundSaveMenu.tsx b/products/ai_observability/frontend/playground/PlaygroundSaveMenu.tsxindex 0f100a903458..d3bfe21e3230 100644--- a/products/ai_observability/frontend/playground/PlaygroundSaveMenu.tsx+++ b/products/ai_observability/frontend/playground/PlaygroundSaveMenu.tsx@@ -6,10 +6,8 @@ import React from 'react'import { IconLlmPromptManagement } from '@posthog/icons'import { LemonButton, LemonDivider, LemonDropdown, LemonInput } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonDialog } from 'lib/lemon-ui/LemonDialog'import { LemonField } from 'lib/lemon-ui/LemonField'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { urls } from 'scenes/urls'import { llmPlaygroundModelLogic } from './llmPlaygroundModelLogic'@@ -25,13 +23,9 @@ export function PlaygroundSaveMenu({ prompt }: { prompt: PromptConfig }): JSX.Elconst { linkedSource, saving } = useValues(llmPlaygroundPromptsLogic)const { clearLinkedSource, saveToLinkedPrompt, saveToLinkedEvaluation, saveAsNewPrompt, saveAsNewEvaluation } =useActions(llmPlaygroundPromptsLogic)- const { featureFlags } = useValues(featureFlagLogic)const { searchParams } = useValues(router)const selectedModel = effectiveModelOptions.find((model) => model.id === prompt.model)- const isEarlyAdopter = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EARLY_ADOPTERS]- const isPromptManagementEnabled = !!featureFlags[FEATURE_FLAGS.PROMPT_MANAGEMENT] || isEarlyAdopter- const isEvaluationsEnabled = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS]const { promptName: linkedPromptName, evaluationId: linkedEvaluationId } = linkedSourceconst hasLinkedSource = !!linkedPromptName || !!linkedEvaluationId@@ -104,8 +98,8 @@ export function PlaygroundSaveMenu({ prompt }: { prompt: PromptConfig }): JSX.Elconst loadActions: JSX.Element[] = []const isLinkedSourceEnabled =- (linkedSource.type === 'prompt' && linkedPromptName && isPromptManagementEnabled) ||- (linkedSource.type === 'evaluation' && linkedEvaluationId && isEvaluationsEnabled && modelConfig)+ (linkedSource.type === 'prompt' && linkedPromptName) ||+ (linkedSource.type === 'evaluation' && linkedEvaluationId && modelConfig)if (linkedLabel && isLinkedSourceEnabled) {linkedActions.push(@@ -132,26 +126,18 @@ export function PlaygroundSaveMenu({ prompt }: { prompt: PromptConfig }): JSX.El)}- if (isPromptManagementEnabled) {- saveAsNewActions.push(- <LemonButton- key="save-new-prompt"- type="tertiary"- size="small"- fullWidth- onClick={openSaveAsNewPromptDialog}- >- Save as new prompt- </LemonButton>- )- loadActions.push(- <LemonButton key="load-prompt" type="tertiary" size="small" fullWidth to={urls.aiObservabilityPrompts()}>- Load prompt- </LemonButton>- )- }+ saveAsNewActions.push(+ <LemonButton key="save-new-prompt" type="tertiary" size="small" fullWidth onClick={openSaveAsNewPromptDialog}>+ Save as new prompt+ </LemonButton>+ )+ loadActions.push(+ <LemonButton key="load-prompt" type="tertiary" size="small" fullWidth to={urls.aiObservabilityPrompts()}>+ Load prompt+ </LemonButton>+ )- if (isEvaluationsEnabled && modelConfig) {+ if (modelConfig) {saveAsNewActions.push(<LemonButtonkey="save-new-evaluation"diff --git a/products/ai_observability/frontend/tabs/aiObservabilityGenerationsLogic.ts b/products/ai_observability/frontend/tabs/aiObservabilityGenerationsLogic.tsindex de756ce50fe1..6a3d2ddb01d2 100644--- a/products/ai_observability/frontend/tabs/aiObservabilityGenerationsLogic.ts+++ b/products/ai_observability/frontend/tabs/aiObservabilityGenerationsLogic.ts@@ -2,8 +2,6 @@ import { actions, connect, kea, listeners, path, props, reducers, selectors } frimport api from 'lib/api'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { groupsModel } from '~/models/groupsModel'import { DataTableNode, LLMTrace, NodeKind, TraceQuery } from '~/queries/schema/schema-general'@@ -14,14 +12,14 @@ import type { aiObservabilityGenerationsLogicType } from './aiObservabilityGenerexport type AIObservabilityGenerationsLogicProps = Record<string, never>-export function getDefaultGenerationsColumns(showSentiment: boolean = false, showTools: boolean = false): string[] {+export function getDefaultGenerationsColumns(): string[] {return ['uuid','properties.$ai_trace_id','person',- ...(showSentiment ? ["'' -- Sentiment"] : []),+ "'' -- Sentiment","f'{properties.$ai_model}' -- Model",- ...(showTools ? ['properties.$ai_tools_called'] : []),+ 'properties.$ai_tools_called',"if(properties.$ai_is_error = 'true', '❌', '') -- Error","f'{round(toFloat(properties.$ai_latency), 2)} s' -- Latency","f'{properties.$ai_input_tokens} → {properties.$ai_output_tokens} (∑ {toInt(properties.$ai_input_tokens) + toInt(properties.$ai_output_tokens)})' -- Token usage",@@ -41,8 +39,6 @@ export const aiObservabilityGenerationsLogic = kea<aiObservabilityGenerationsLog['dateFilter', 'shouldFilterTestAccounts', 'propertyFilters'],groupsModel,['groupsTaxonomicTypes'],- featureFlagLogic,- ['featureFlags'],],actions: [aiObservabilitySharedLogic,@@ -164,7 +160,6 @@ export const aiObservabilityGenerationsLogic = kea<aiObservabilityGenerationsLogs.generationsColumns,s.generationsSort,s.groupsTaxonomicTypes,- s.featureFlags,],(dateFilter,@@ -172,19 +167,13 @@ export const aiObservabilityGenerationsLogic = kea<aiObservabilityGenerationsLogpropertyFilters,generationsColumns,generationsSort,- groupsTaxonomicTypes,- featureFlags+ groupsTaxonomicTypes): DataTableNode => ({kind: NodeKind.DataTableNode,source: {kind: NodeKind.EventsQuery,limit: 100,- select:- generationsColumns ||- getDefaultGenerationsColumns(- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT],- !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_TAB]- ),+ select: generationsColumns || getDefaultGenerationsColumns(),orderBy: [`${generationsSort.column} ${generationsSort.direction}`],after: dateFilter.dateFrom || undefined,before: dateFilter.dateTo || undefined,diff --git a/products/ai_observability/frontend/tabs/aiObservabilityTracesTabLogic.ts b/products/ai_observability/frontend/tabs/aiObservabilityTracesTabLogic.tsindex a101c656a095..f1c63919851d 100644--- a/products/ai_observability/frontend/tabs/aiObservabilityTracesTabLogic.ts+++ b/products/ai_observability/frontend/tabs/aiObservabilityTracesTabLogic.ts@@ -127,15 +127,13 @@ export const aiObservabilityTracesTabLogic = kea<aiObservabilityTracesTabLogicTy? ['inputState', 'outputState']: []),'person',- ...(featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_SENTIMENT] && showSentimentColumn- ? ['__llm_sentiment']- : []),- ...(featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TOOLS_TAB] ? ['__llm_tools'] : []),+ ...(showSentimentColumn ? ['__llm_sentiment'] : []),+ '__llm_tools','errorCount','totalLatency','usage','totalCost',- ...(featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRACE_REVIEW] ? ['review'] : []),+ 'review','createdAt',],showDateRange: true,diff --git a/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx b/products/ai_observability/frontend/text-view/components/LineWithNumber.tsxindex 31a142024e00..1b1e217db501 100644--- a/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx+++ b/products/ai_observability/frontend/text-view/components/LineWithNumber.tsx@@ -3,8 +3,6 @@ import { useEffect, useRef } from 'react'import { LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { commentsLogic } from 'scenes/comments/commentsLogic'import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'@@ -32,11 +30,9 @@ export function LineWithNumber({onCopyPermalink,}: LineWithNumberProps): JSX.Element {const lineRef = useRef<HTMLSpanElement>(null)- const { featureFlags } = useValues(featureFlagLogic)const { openSidePanel } = useActions(sidePanelStateLogic)- const showDiscussions = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_DISCUSSIONS] && !!traceId- const showTranslation = !!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRANSLATION]+ const showDiscussions = !!traceIdconst commentsLogicProps = {scope: ActivityScope.LLM_TRACE,@@ -111,21 +107,17 @@ export function LineWithNumber({},]: []),- ...(showTranslation- ? [- {- label: 'Translate',- onClick: () => {- if (dataProcessingAccepted) {- setShowTranslatePopover(true)- } else {- setShowConsentPopover(true)- }- },- 'data-attr': 'llma-line-translate',- },- ]- : []),+ {+ label: 'Translate',+ onClick: () => {+ if (dataProcessingAccepted) {+ setShowTranslatePopover(true)+ } else {+ setShowConsentPopover(true)+ }+ },+ 'data-attr': 'llma-line-translate',+ },]return (diff --git a/products/ai_observability/frontend/traceReviews/TraceReviewButton.tsx b/products/ai_observability/frontend/traceReviews/TraceReviewButton.tsxindex d59535c2f538..5cd17f41f444 100644--- a/products/ai_observability/frontend/traceReviews/TraceReviewButton.tsx+++ b/products/ai_observability/frontend/traceReviews/TraceReviewButton.tsx@@ -14,9 +14,7 @@ import {} from '@posthog/lemon-ui'import { AccessControlAction, AccessControlActionChildrenProps } from 'lib/components/AccessControlAction'-import { FEATURE_FLAGS } from 'lib/constants'import { Link } from 'lib/lemon-ui/Link'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { urls } from '~/scenes/urls'import { AccessControlLevel, AccessControlResourceType } from '~/types'@@ -340,7 +338,6 @@ export function TraceReviewButton({onReviewSaved?: () => void}): JSX.Element {const logic = useMountedLogic(traceReviewModalLogic({ traceId, queueId }))- const { featureFlags } = useValues(featureFlagLogic)const { getTraceReview } = useValues(traceReviewsLazyLoaderLogic)const {openModal,@@ -388,10 +385,6 @@ export function TraceReviewButton({wasSavingRef.current = saving}, [effectiveReview, isOpen, onReviewSaved, saving])- if (!featureFlags[FEATURE_FLAGS.LLM_ANALYTICS_TRACE_REVIEW]) {- return <></>- }-return (<><AccessControlActiondiff --git a/products/ai_observability/manifest.tsx b/products/ai_observability/manifest.tsxindex f50ba62cd292..5964171a4a99 100644--- a/products/ai_observability/manifest.tsx+++ b/products/ai_observability/manifest.tsx@@ -401,7 +401,6 @@ export const manifest: ProductManifest = {iconType: 'llm_evaluations' as FileSystemIconType,iconColor: ['var(--color-product-llm-evaluations-light)'] as FileSystemIconColor,href: urls.aiObservabilityEvaluations(),- flag: FEATURE_FLAGS.LLM_ANALYTICS_EVALUATIONS,sceneKey: 'AIObservabilityEvaluations',},{@@ -424,7 +423,6 @@ export const manifest: ProductManifest = {iconType: 'llm_prompts' as FileSystemIconType,iconColor: ['var(--color-product-llm-prompts-light)'] as FileSystemIconColor,href: urls.aiObservabilityPrompts(),- flag: FEATURE_FLAGS.PROMPT_MANAGEMENT,tags: ['beta'],sceneKey: 'AIObservabilityPrompts',},diff --git a/products/skills/manifest.tsx b/products/skills/manifest.tsxindex 0d3af481fd28..f40c990d11a7 100644--- a/products/skills/manifest.tsx+++ b/products/skills/manifest.tsx@@ -1,6 +1,5 @@import { combineUrl } from 'kea-router'-import { FEATURE_FLAGS } from 'lib/constants'import { urls } from 'scenes/urls'import { FileSystemIconType, ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'@@ -61,7 +60,6 @@ export const manifest: ProductManifest = {iconType: 'llm_prompts' as FileSystemIconType,iconColor: ['var(--color-product-llm-prompts-light)'] as FileSystemIconColor,href: urls.skills(),- flag: FEATURE_FLAGS.LLM_ANALYTICS_SKILLS,sceneKey: 'Skills',},],