chore: fix comment issues (#1056)

This commit is contained in:
Kevin Wan
2021-09-17 17:11:03 +08:00
committed by GitHub
parent 872c50b71a
commit c9db9588b7

View File

@@ -29,7 +29,7 @@ type ServiceConf struct {
Mode string `json:",default=pro,options=dev|test|rt|pre|pro"`
MetricsUrl string `json:",optional"`
Prometheus prometheus.Config `json:",optional"`
// TODO: enable it in v1.2.1
// TODO: enable it in v1.2.2
// Telemetry opentelemetry.Config `json:",optional"`
}
@@ -52,7 +52,7 @@ func (sc ServiceConf) SetUp() error {
sc.initMode()
prometheus.StartAgent(sc.Prometheus)
// TODO: enable it in v1.2.1
// TODO: enable it in v1.2.2
// if len(sc.Telemetry.Name) == 0 {
// sc.Telemetry.Name = sc.Name
// }