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.

fix: ensure Performance Tracing button visible when no tracing provid… (#25351)

Krito.74be2087b556
diff --git a/api/core/ops/ops_trace_manager.py b/api/core/ops/ops_trace_manager.py
index 1bc87023d53..a2f1969bc8d 100644
--- a/api/core/ops/ops_trace_manager.py
+++ b/api/core/ops/ops_trace_manager.py
@@ -323,14 +323,11 @@ class OpsTraceManager:
:return:
"""
# auth check
- if enabled:
- try:
+ try:
+ if enabled or tracing_provider is not None:
provider_config_map[tracing_provider]
- except KeyError:
- raise ValueError(f"Invalid tracing provider: {tracing_provider}")
- else:
- if tracing_provider is None:
- raise ValueError(f"Invalid tracing provider: {tracing_provider}")
+ except KeyError:
+ raise ValueError(f"Invalid tracing provider: {tracing_provider}")
app_config: Optional[App] = db.session.query(App).where(App.id == app_id).first()
if not app_config: