rest otel support (#943)

This commit is contained in:
zhoushuguang
2021-08-24 10:04:12 +08:00
committed by GitHub
parent f669e1226c
commit 280e837c9e
8 changed files with 103 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ func (sc ServiceConf) SetUp() error {
if len(sc.Log.ServiceName) == 0 {
sc.Log.ServiceName = sc.Name
}
if len(sc.OpenTelemetry.Name) == 0 {
sc.OpenTelemetry.Name = sc.Name
}
if err := logx.SetUp(sc.Log); err != nil {
return err
}