瀏覽代碼

fix: api/core/ops/ops_trace_manager.py (#8501)

tags/0.9.0
Nam Vu 1 年之前
父節點
當前提交
8219f9e090
No account linked to committer's email address
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10
    3
      api/core/ops/ops_trace_manager.py

+ 10
- 3
api/core/ops/ops_trace_manager.py 查看文件

@@ -176,11 +176,18 @@ class OpsTraceManager:
return None

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

if app_ops_trace_config is not None:
tracing_provider = app_ops_trace_config.get("tracing_provider")
else:
if app_ops_trace_config is None:
return None

tracing_provider = app_ops_trace_config.get("tracing_provider")

if tracing_provider is None or tracing_provider not in provider_config_map:
return None

# decrypt_token

Loading…
取消
儲存