fix create_tracing_app_config error (#19884) (#20004)

Co-authored-by: codly <codly.fun@gmail.com>
pull/20019/head
俊晨 11 months ago committed by GitHub
parent 75cacc2855
commit 36b321735e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save