mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 05:16:00 +08:00
fix: api/core/ops/ops_trace_manager.py (#8501)
This commit is contained in:
parent
5ddb601e43
commit
8219f9e090
@ -176,11 +176,18 @@ class OpsTraceManager:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
app: App = db.session.query(App).filter(App.id == app_id).first()
|
app: App = db.session.query(App).filter(App.id == app_id).first()
|
||||||
|
|
||||||
|
if app is None:
|
||||||
|
return None
|
||||||
|
|
||||||
app_ops_trace_config = json.loads(app.tracing) if app.tracing else None
|
app_ops_trace_config = json.loads(app.tracing) if app.tracing else None
|
||||||
|
|
||||||
if app_ops_trace_config is not None:
|
if app_ops_trace_config is None:
|
||||||
|
return None
|
||||||
|
|
||||||
tracing_provider = app_ops_trace_config.get("tracing_provider")
|
tracing_provider = app_ops_trace_config.get("tracing_provider")
|
||||||
else:
|
|
||||||
|
if tracing_provider is None or tracing_provider not in provider_config_map:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# decrypt_token
|
# decrypt_token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user