[APM] Rename "Tags" -> "Labels" in span flyout (#33688)

* [APM] Closes #33486. Rename "Tags" -> "Labels" in span flyout.

* Remove unused translation 'xpack.apm.transactionDetails.spanFlyout.tagsTabLabel'
This commit is contained in:
Oliver Gupte 2019-03-25 09:26:53 -07:00 committed by GitHub
parent 8aa8c55002
commit 2c48da2417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -57,10 +57,10 @@ export function SpanFlyout({
const codeLanguage = idx(parentTransaction, _ => _.service.language.name);
const dbContext = idx(span, _ => _.span.db);
const httpContext = idx(span, _ => _.span.http);
const labels = span.labels;
const tags = keys(labels).map(key => ({
const spanLabels = span.labels;
const labels = keys(spanLabels).map(key => ({
key,
value: get(labels, key)
value: get(spanLabels, key)
}));
return (
@ -123,11 +123,11 @@ export function SpanFlyout({
)
},
{
id: 'tags',
id: 'labels',
name: i18n.translate(
'xpack.apm.transactionDetails.spanFlyout.tagsTabLabel',
'xpack.apm.propertiesTable.tabs.labelsLabel',
{
defaultMessage: 'Tags'
defaultMessage: 'Labels'
}
),
content: (
@ -144,7 +144,7 @@ export function SpanFlyout({
field: 'value'
}
]}
items={tags}
items={labels}
/>
</Fragment>
)

View file

@ -3435,7 +3435,6 @@
"xpack.apm.transactionDetails.spanFlyout.spanDetailsTitle": "跨度详情",
"xpack.apm.transactionDetails.spanFlyout.spanType.navigationTimingLabel": "导航定时",
"xpack.apm.transactionDetails.spanFlyout.stackTraceTabLabel": "堆栈追溯",
"xpack.apm.transactionDetails.spanFlyout.tagsTabLabel": "标记",
"xpack.apm.transactionDetails.spanFlyout.typeLabel": "类型",
"xpack.apm.transactionDetails.spanFlyout.viewSpanInDiscoverButtonLabel": "在 Discover 中查看跨度",
"xpack.apm.transactionDetails.timestampLabel": "时间戳",