diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 9df96d60..9c854703 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -298,6 +298,7 @@ const msg = { isError: "Error", contentType: "Content Type", content: "Timestamp - Content", + level: "Level", viewLogs: "View Logs", logsTagsTip: `Only tags defined in the core/default/searchableLogsTags are searchable. Check more details on the Configuration Vocabulary page`, diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index 27860e0d..278af1be 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -297,6 +297,7 @@ const msg = { isError: "Error", contentType: "Tipo de Contenido", content: "Contenido", + level: "Level", viewLogs: "Ver Registro de Datos", logsTagsTip: `Solamente etiquetas definidas en core/default/searchableLogsTags pueden ser buscadas. Más información en la página de Vocabulario de Configuración`, diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 760cfe82..e9c340ec 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -295,6 +295,7 @@ const msg = { isError: "错误", contentType: "内容类型", content: "时间戳 - 内容", + level: "Level", viewLogs: "查看日志", logsTagsTip: "只有core/default/searchableLogsTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。", keywordsOfContentLogTips: "SkyWalking OAP服务器的当前存储不支持此操作", diff --git a/src/views/dashboard/related/log/LogTable/Index.vue b/src/views/dashboard/related/log/LogTable/Index.vue index b4671a81..65e4732f 100644 --- a/src/views/dashboard/related/log/LogTable/Index.vue +++ b/src/views/dashboard/related/log/LogTable/Index.vue @@ -95,7 +95,7 @@ limitations under the License. --> } .tags { - width: 260px; + width: 100px; } .serviceName { diff --git a/src/views/dashboard/related/log/LogTable/LogService.vue b/src/views/dashboard/related/log/LogTable/LogService.vue index eaa9c32c..5e8be585 100644 --- a/src/views/dashboard/related/log/LogTable/LogService.vue +++ b/src/views/dashboard/related/log/LogTable/LogService.vue @@ -55,7 +55,7 @@ limitations under the License. --> if (!props.data.tags) { return ""; } - return String(props.data.tags.map((d: { key: string; value: string }) => `${d.key}=${d.value}`)); + return (props.data.tags.find((d: { key: string; value: string }) => d.key === "level") || {}).value || ""; }); function selectLog(label: string, value: string) { @@ -103,7 +103,7 @@ limitations under the License. --> } .tags { - width: 260px; + width: 100px; } .content { diff --git a/src/views/dashboard/related/log/LogTable/data.ts b/src/views/dashboard/related/log/LogTable/data.ts index 11843533..69706dfc 100644 --- a/src/views/dashboard/related/log/LogTable/data.ts +++ b/src/views/dashboard/related/log/LogTable/data.ts @@ -26,7 +26,7 @@ export const ServiceLogConstants = [ }, { label: "tags", - value: "tags", + value: "level", }, { label: "traceId",