feat: add tracing settings to validator
This commit is contained in:
parent
5328e8de03
commit
18a0ddc2d3
@ -45,7 +45,13 @@ webserver_validators = [
|
||||
Validator("webserver.port", must_exist=True, is_type_of=int),
|
||||
]
|
||||
|
||||
tracing_validators = [
|
||||
Validator("tracing.enabled", must_exist=True, is_type_of=bool),
|
||||
Validator("tracing.type", must_exist=True, is_type_of=str)
|
||||
]
|
||||
|
||||
opentelemetry_validators = [
|
||||
Validator("tracing.opentelemetry.endpoint", must_exist=True, is_type_of=str),
|
||||
Validator("tracing.opentelemetry.service_name", must_exist=True, is_type_of=str),
|
||||
Validator("tracing.opentelemetry.exporter", must_exist=True, is_type_of=str)
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user