🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat(blob-storage): decouple export source visibility from V4 beta toggle (#14032)
Niklas Semmler1d863d41d9d7
diff --git a/packages/shared/src/features/analytics-integrations/blob-export-gate.ts b/packages/shared/src/features/analytics-integrations/blob-export-gate.tsindex d864416ad3..68c6eb7e09 100644--- a/packages/shared/src/features/analytics-integrations/blob-export-gate.ts+++ b/packages/shared/src/features/analytics-integrations/blob-export-gate.ts@@ -36,3 +36,11 @@ export function isLegacyBlobExportAllowed(if (!isCloud) return true;return projectCreatedAt < LEGACY_BLOB_EXPORT_CUTOFF;}++/**+ * Whether this deployment has the enriched events export path.+ * Today equivalent to `isLangfuseCloud`; flip when self-hosted is provisioned with the migration.+ */+export function isEnrichedBlobExportAvailable(isCloud: boolean): boolean {+ return isCloud;+}diff --git a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsxindex 20eb17b8a3..973370c495 100644--- a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx@@ -56,10 +56,10 @@ import {OBSERVATION_FIELD_GROUPS_FULL,type ObservationFieldGroupFull,isLegacyBlobExportAllowed,+ isEnrichedBlobExportAvailable,} from "@langfuse/shared";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";import { useQueryProject } from "@/src/features/projects/hooks";-import { useV4Beta } from "@/src/features/events/hooks/useV4Beta";import { Info, ExternalLink } from "lucide-react";export default function BlobStorageIntegrationSettings() {@@ -234,7 +234,6 @@ const BlobStorageIntegrationSettingsForm = ({}) => {const capture = usePostHogClientCapture();const { isLangfuseCloud } = useLangfuseCloudRegion();- const { isBetaEnabled } = useV4Beta();const { project } = useQueryProject();const [integrationType, setIntegrationType] =useState<BlobStorageIntegrationType>(BlobStorageIntegrationType.S3);@@ -248,7 +247,8 @@ const BlobStorageIntegrationSettingsForm = ({const isPostCutoffCloud =project?.createdAt != null &&!isLegacyBlobExportAllowed(new Date(project.createdAt), isLangfuseCloud);- const showExportSourceField = isBetaEnabled && !isPostCutoffCloud;+ const eventsExportAvailable = isEnrichedBlobExportAvailable(isLangfuseCloud);+ const showExportSourceField = eventsExportAvailable && !isPostCutoffCloud;const blobStorageForm = useForm({resolver: zodResolver(blobStorageIntegrationFormSchema),@@ -273,7 +273,7 @@ const BlobStorageIntegrationSettingsForm = ({exportSource: isPostCutoffCloud? AnalyticsIntegrationExportSource.EVENTS: state?.exportSource ||- (isBetaEnabled+ (eventsExportAvailable? AnalyticsIntegrationExportSource.EVENTS: AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS),exportFieldGroups:@@ -308,7 +308,7 @@ const BlobStorageIntegrationSettingsForm = ({exportSource: isPostCutoffCloud? AnalyticsIntegrationExportSource.EVENTS: state?.exportSource ||- (isBetaEnabled+ (eventsExportAvailable? AnalyticsIntegrationExportSource.EVENTS: AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS),exportFieldGroups:@@ -744,7 +744,7 @@ const BlobStorageIntegrationSettingsForm = ({/>)}- {isBetaEnabled &&+ {eventsExportAvailable &&(watchedExportSource === AnalyticsIntegrationExportSource.EVENTS ||watchedExportSource ===AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS_EVENTS) && (