Skip to content

Commit

Permalink
[APM] Adding tech preview on the logs tab for AWS lambda service (ela…
Browse files Browse the repository at this point in the history
…stic#142605)

* [APM] Adding tech preview on the logs tab for AWS lambda service

* Addressing pr comments
  • Loading branch information
cauemarcondes authored and WafaaNasr committed Oct 14, 2022
1 parent 7ffad71 commit c64e54d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (
<TechnicalPreviewBadge icon="beaker" />
) : undefined,
),
hidden: isMetricsTabHidden({
agentName,
runtimeName,
Expand Down Expand Up @@ -318,6 +318,9 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
label: i18n.translate('xpack.apm.home.serviceLogsTabLabel', {
defaultMessage: 'Logs',
}),
append: isServerlessAgent(runtimeName) && (
<TechnicalPreviewBadge icon="beaker" />
),
hidden:
!agentName || isRumAgentName(agentName) || isMobileAgentName(agentName),
},
Expand Down

0 comments on commit c64e54d

Please sign in to comment.