diff --git a/x-pack/plugins/observability/server/ui_settings.ts b/x-pack/plugins/observability/server/ui_settings.ts
index 69e7f0ba51af6..a5b111569e311 100644
--- a/x-pack/plugins/observability/server/ui_settings.ts
+++ b/x-pack/plugins/observability/server/ui_settings.ts
@@ -29,11 +29,16 @@ import {
const technicalPreviewLabel = i18n.translate(
'xpack.observability.uiSettings.technicalPreviewLabel',
- {
- defaultMessage: 'technical preview',
- }
+ { defaultMessage: 'technical preview' }
);
+function feedbackLink({ href }: { href: string }) {
+ return `${i18n.translate(
+ 'xpack.observability.uiSettings.giveFeedBackLabel',
+ { defaultMessage: 'Give feedback' }
+ )}`;
+}
+
type UiSettings = UiSettingsParams & { showInLabs?: boolean };
/**
@@ -167,12 +172,7 @@ export const uiSettings: Record = {
'{technicalPreviewLabel} Enable the Service groups feature on APM UI. {feedbackLink}.',
values: {
technicalPreviewLabel: `[${technicalPreviewLabel}]`,
- feedbackLink:
- '' +
- i18n.translate('xpack.observability.enableServiceGroups.feedbackLinkText', {
- defaultMessage: 'Give feedback',
- }) +
- '',
+ feedbackLink: feedbackLink({ href: 'https://ela.st/feedback-service-groups' }),
},
}),
schema: schema.boolean(),
@@ -206,15 +206,7 @@ export const uiSettings: Record = {
'{technicalPreviewLabel} Default APM Service Inventory page sort (for Services without Machine Learning applied) to sort by Service Name. {feedbackLink}.',
values: {
technicalPreviewLabel: `[${technicalPreviewLabel}]`,
- feedbackLink:
- '' +
- i18n.translate(
- 'xpack.observability.apmServiceInventoryOptimizedSorting.feedbackLinkText',
- {
- defaultMessage: 'Give feedback',
- }
- ) +
- '',
+ feedbackLink: feedbackLink({ href: 'https://ela.st/feedback-apm-page-performance' }),
},
}
),
@@ -245,12 +237,7 @@ export const uiSettings: Record = {
'{technicalPreviewLabel} Enable the APM Trace Explorer feature, that allows you to search and inspect traces with KQL or EQL. {feedbackLink}.',
values: {
technicalPreviewLabel: `[${technicalPreviewLabel}]`,
- feedbackLink:
- '' +
- i18n.translate('xpack.observability.apmTraceExplorerTabDescription.feedbackLinkText', {
- defaultMessage: 'Give feedback',
- }) +
- '',
+ feedbackLink: feedbackLink({ href: 'https://ela.st/feedback-trace-explorer' }),
},
}),
schema: schema.boolean(),
@@ -269,12 +256,7 @@ export const uiSettings: Record = {
'{technicalPreviewLabel} Enable the APM Operations Breakdown feature, that displays aggregates for backend operations. {feedbackLink}.',
values: {
technicalPreviewLabel: `[${technicalPreviewLabel}]`,
- feedbackLink:
- '' +
- i18n.translate('xpack.observability.apmOperationsBreakdownDescription.feedbackLinkText', {
- defaultMessage: 'Give feedback',
- }) +
- '',
+ feedbackLink: feedbackLink({ href: 'https://ela.st/feedback-operations-breakdown' }),
},
}),
schema: schema.boolean(),
@@ -318,12 +300,7 @@ export const uiSettings: Record = {
'{technicalPreviewLabel} Display Amazon Lambda metrics in the service metrics tab. {feedbackLink}',
values: {
technicalPreviewLabel: `[${technicalPreviewLabel}]`,
- feedbackLink:
- '' +
- i18n.translate('xpack.observability.awsLambdaDescription', {
- defaultMessage: 'Send feedback',
- }) +
- '',
+ feedbackLink: feedbackLink({ href: 'https://ela.st/feedback-aws-lambda' }),
},
}),
schema: schema.boolean(),