feat: tracing fe (#5487)

This commit is contained in:
Joel 2024-06-26 17:33:57 +08:00 • committed by GitHub
commit 8fa6cb5e03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 2222 additions and 14 deletions

View file

@ -85,6 +85,42 @@ const translation = {
workflow: 'Workflow',
completion: 'Completion',
},
tracing: {
title: 'Tracing app performance',
description: 'Configuring a Third-Party LLMOps provider and tracing app performance.',
config: 'Config',
collapse: 'Collapse',
expand: 'Expand',
tracing: 'Tracing',
disabled: 'Disabled',
disabledTip: 'Please config provider first',
enabled: 'In Service',
tracingDescription: 'Capture the full context of app execution, including LLM calls, context, prompts, HTTP requests, and more, to a third-party tracing platform.',
configProviderTitle: {
configured: 'Configured',
notConfigured: 'Config provider to enable tracing',
moreProvider: 'More Provider',
},
langsmith: {
title: 'LangSmith',
description: 'An all-in-one developer platform for every step of the LLM-powered application lifecycle.',
},
langfuse: {
title: 'Langfuse',
description: 'Traces, evals, prompt management and metrics to debug and improve your LLM application.',
},
inUse: 'In use',
configProvider: {
title: 'Config ',
placeholder: 'Enter your {{key}}',
project: 'Project',
publicKey: 'Public Key',
secretKey: 'Secret Key',
viewDocsLink: 'View {{key}} docs',
removeConfirmTitle: 'Remove {{key}} configuration?',
removeConfirmContent: 'The current configuration is in use, removing it will turn off the Tracing feature.',
},
},
}
export default translation

View file

@ -12,6 +12,7 @@ const translation = {
cancel: 'Cancel',
clear: 'Clear',
save: 'Save',
saveAndEnable: 'Save & Enable',
edit: 'Edit',
add: 'Add',
added: 'Added',
@ -439,7 +440,7 @@ const translation = {
latestAvailable: 'Dify {{version}} is the latest version available.',
},
appMenus: {
overview: 'Overview',
overview: 'Monitoring',
promptEng: 'Orchestrate',
apiAccess: 'API Access',
logAndAnn: 'Logs & Ann.',

View file

@ -84,6 +84,42 @@ const translation = {
workflow: '工作流',
completion: '文本生成',
},
tracing: {
title: '追踪应用性能',
description: '配置第三方 LLMOps 提供商并跟踪应用程序性能。',
config: '配置',
collapse: '折叠',
expand: '展开',
tracing: '追踪',
disabled: '已禁用',
disabledTip: '请先配置提供商',
enabled: '已启用',
tracingDescription: '捕获应用程序执行的完整上下文,包括 LLM 调用、上下文、提示、HTTP 请求等,发送到第三方跟踪平台。',
configProviderTitle: {
configured: '已配置',
notConfigured: '配置提供商以启用追踪',
moreProvider: '更多提供商',
},
langsmith: {
title: 'LangSmith',
description: '一个全方位的开发者平台,适用于 LLM 驱动应用程序生命周期的每个步骤。',
},
langfuse: {
title: 'Langfuse',
description: '跟踪、评估、提示管理和指标,以调试和改进您的 LLM 应用程序。',
},
inUse: '使用中',
configProvider: {
title: '配置 ',
placeholder: '输入你的{{key}}',
project: '项目',
publicKey: '公钥',
secretKey: '密钥',
viewDocsLink: '查看 {{key}} 的文档',
removeConfirmTitle: '删除 {{key}} 配置?',
removeConfirmContent: '当前配置正在使用中,删除它将关闭追踪功能。',
},
},
}
export default translation

View file

@ -12,6 +12,7 @@ const translation = {
cancel: '取消',
clear: '清空',
save: '保存',
saveAndEnable: '保存并启用',
edit: '编辑',
add: '添加',
added: '已添加',
@ -435,7 +436,7 @@ const translation = {
latestAvailable: 'Dify {{version}} 已是最新版本。',
},
appMenus: {
overview: '概览',
overview: '监测',
promptEng: '编排',
apiAccess: '访问 API',
logAndAnn: '日志与标注',