From 364f93058135ded76d0c026d742b38afdc6bac1d Mon Sep 17 00:00:00 2001 From: Caue Marcondes Date: Fri, 29 Sep 2023 10:46:43 +0100 Subject: [PATCH] adressing pr comments --- .../routing/templates/apm_service_template/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx index 018af97c03d982..2e97a0e6156c5f 100644 --- a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx +++ b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx @@ -27,6 +27,7 @@ import { isAWSLambdaAgent, isAzureFunctionsAgent, isServerlessAgent, + isRumOrMobileAgent, } from '../../../../../common/agent_name'; import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context'; import { ApmServiceContextProvider } from '../../../../context/apm_service/apm_service_context'; @@ -406,8 +407,8 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) { }), hidden: !isProfilingAvailable || - isMobileAgentName(agentName) || - isRumAgentName(agentName), + isRumOrMobileAgent(agentName) || + isAWSLambdaAgent(serverlessType), append: ( {i18n.translate('xpack.apm.universalProfiling.newLabel', {