Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Langfuse view button (#7578)

Charlie.Weidf69ad9f0e43
diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx
index 7aa1fca96d8..7744bab7ba7 100644
--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx
+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx
@@ -85,6 +85,7 @@ const ConfigPopup: FC<PopupProps> = ({
<ProviderPanel
type={TracingProvider.langSmith}
readOnly={readOnly}
+ config={langSmithConfig}
hasConfigured={!!langSmithConfig}
onConfig={handleOnConfig(TracingProvider.langSmith)}
isChosen={chosenProvider === TracingProvider.langSmith}
@@ -96,6 +97,7 @@ const ConfigPopup: FC<PopupProps> = ({
<ProviderPanel
type={TracingProvider.langfuse}
readOnly={readOnly}
+ config={langFuseConfig}
hasConfigured={!!langFuseConfig}
onConfig={handleOnConfig(TracingProvider.langfuse)}
isChosen={chosenProvider === TracingProvider.langfuse}
diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx
index 4a395860648..b908322a928 100644
--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx
+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx
@@ -14,7 +14,7 @@ type Props = {
type: TracingProvider
readOnly: boolean
isChosen: boolean
- Config: any
+ config: any
onChoose: () => void
hasConfigured: boolean
onConfig: () => void
@@ -31,7 +31,7 @@ const ProviderPanel: FC<Props> = ({
type,
readOnly,
isChosen,
- Config,
+ config,
onChoose,
hasConfigured,
onConfig,
@@ -48,9 +48,9 @@ const ProviderPanel: FC<Props> = ({
e.preventDefault()
e.stopPropagation()
- const url = `${Config?.host}/project/${Config?.project_key}`
+ const url = `${config?.host}/project/${config?.project_key}`
window.open(url, '_blank', 'noopener,noreferrer')
- }, [Config?.host, Config?.project_key])
+ }, [])
const handleChosen = useCallback((e: React.MouseEvent) => {
e.stopPropagation()