fix create_tracing_app_config error (#19884) (#20004)

Co-authored-by: codly <codly.fun@gmail.com>
This commit is contained in:
俊晨 2025-05-21 10:45:10 +08:00 committed by GitHub
parent 75cacc2855
commit 36b321735e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,7 +234,11 @@ class OpsTraceManager:
return None
tracing_provider = app_ops_trace_config.get("tracing_provider")
if tracing_provider is None or tracing_provider not in provider_config_map:
if tracing_provider is None:
return None
try:
provider_config_map[tracing_provider]
except KeyError:
return None
# decrypt_token