add otel module based on uptrace-go

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2025-06-05 16:31:03 +02:00
parent 533a0ea43a
commit 549384ea57
17 changed files with 1309 additions and 214 deletions

View File

@ -265,7 +265,9 @@ func (l *logger) WithReportCaller(b bool, depth ...uint) Logger {
}
func (l *logger) Logr() logr.Logger {
return logrusr.New(l.fl)
return logrusr.New(l.fl, logrusr.WithFormatter(func(i interface{}) interface{} {
return fmt.Sprintf("%v", i)
}))
}
func (l *logger) FieldLogger() logrus.FieldLogger {