From 723c31f6c52465a984e34147e15985730cd3404a Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Wed, 18 Sep 2024 18:11:41 +0530 Subject: [PATCH] chore: hide usage explorer and update over 100rps warning (#5937) --- frontend/public/locales/en-GB/services.json | 2 +- frontend/public/locales/en/services.json | 2 +- .../ServiceMetrics/ServiceMetricTable.tsx | 3 ++- .../ServiceTraces/ServiceTracesTable.tsx | 7 ++++--- frontend/src/container/SideNav/menuItems.tsx | 6 ------ 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/frontend/public/locales/en-GB/services.json b/frontend/public/locales/en-GB/services.json index 4c49847031..f04c851759 100644 --- a/frontend/public/locales/en-GB/services.json +++ b/frontend/public/locales/en-GB/services.json @@ -1,3 +1,3 @@ { - "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support." + "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support or " } diff --git a/frontend/public/locales/en/services.json b/frontend/public/locales/en/services.json index 4c49847031..f04c851759 100644 --- a/frontend/public/locales/en/services.json +++ b/frontend/public/locales/en/services.json @@ -1,3 +1,3 @@ { - "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support." + "rps_over_100": "You are sending data at more than 100 RPS, your ingestion may be rate limited. Please reach out to us via Intercom support or " } diff --git a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx index 6430cc9c8f..1a3b99d6dd 100644 --- a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx +++ b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx @@ -92,9 +92,10 @@ function ServiceMetricTable({ return ( <> {RPS > MAX_RPS_LIMIT && ( - + {getText('rps_over_100')} + email )} diff --git a/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx b/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx index 6633b7a1aa..42d22e8980 100644 --- a/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx +++ b/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx @@ -49,10 +49,11 @@ function ServiceTraceTable({ return ( <> {RPS > MAX_RPS_LIMIT && ( - - + + {getText('rps_over_100')} - + email + )} diff --git a/frontend/src/container/SideNav/menuItems.tsx b/frontend/src/container/SideNav/menuItems.tsx index be694227a1..6d24b74c53 100644 --- a/frontend/src/container/SideNav/menuItems.tsx +++ b/frontend/src/container/SideNav/menuItems.tsx @@ -1,7 +1,6 @@ import { RocketOutlined } from '@ant-design/icons'; import ROUTES from 'constants/routes'; import { - AreaChart, BarChart2, BellDot, BugIcon, @@ -114,11 +113,6 @@ const menuItems: SidebarItem[] = [ icon: , isBeta: true, }, - { - key: ROUTES.USAGE_EXPLORER, - label: 'Usage Explorer', - icon: , - }, { key: ROUTES.BILLING, label: 'Billing',