From 1fc372c965dbe31021e8491edc54eda2b544002a Mon Sep 17 00:00:00 2001
From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Date: Tue, 4 Oct 2022 14:11:47 -0600
Subject: [PATCH] [APM] Adding tech preview on the logs tab for AWS lambda
service (#142605) (#142658)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* [APM] Adding tech preview on the logs tab for AWS lambda service
* Addressing pr comments
(cherry picked from commit d0def9eef1c796ec22f70987031e9831bdf29dc8)
Co-authored-by: CauĂȘ Marcondes <55978943+cauemarcondes@users.noreply.github.com>
---
.../routing/templates/apm_service_template/index.tsx | 7 +++++--
1 file changed, 5 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 0a0b17a4e273b..c1bda0d2acfe6 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
@@ -267,9 +267,9 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
label: i18n.translate('xpack.apm.serviceDetails.metricsTabLabel', {
defaultMessage: 'Metrics',
}),
- append: isServerlessAgent(runtimeName) ? (
+ append: isServerlessAgent(runtimeName) && (
- ) : undefined,
+ ),
hidden: isMetricsTabHidden({
agentName,
runtimeName,
@@ -318,6 +318,9 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
label: i18n.translate('xpack.apm.home.serviceLogsTabLabel', {
defaultMessage: 'Logs',
}),
+ append: isServerlessAgent(runtimeName) && (
+
+ ),
hidden:
!agentName || isRumAgentName(agentName) || isMobileAgentName(agentName),
},