fix: ensure Performance Tracing button visible when no tracing provid… (#25351)
This commit is contained in:
parent
57f1822213
commit
74be2087b5
1 changed files with 4 additions and 7 deletions
|
|
@ -323,14 +323,11 @@ class OpsTraceManager:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
# auth check
|
# auth check
|
||||||
if enabled:
|
try:
|
||||||
try:
|
if enabled or tracing_provider is not None:
|
||||||
provider_config_map[tracing_provider]
|
provider_config_map[tracing_provider]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
|
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
|
||||||
else:
|
|
||||||
if tracing_provider is None:
|
|
||||||
raise ValueError(f"Invalid tracing provider: {tracing_provider}")
|
|
||||||
|
|
||||||
app_config: Optional[App] = db.session.query(App).where(App.id == app_id).first()
|
app_config: Optional[App] = db.session.query(App).where(App.id == app_id).first()
|
||||||
if not app_config:
|
if not app_config:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue