coding style (#1083)

This commit is contained in:
Kevin Wan
2021-09-23 11:19:57 +08:00
committed by GitHub
parent 2695c30886
commit 2e12cd2c99
8 changed files with 3 additions and 9 deletions

View File

@@ -51,7 +51,8 @@ func StartAgent(c Config) {
)
otel.SetTracerProvider(tp)
otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{}))
otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(
propagation.TraceContext{}, propagation.Baggage{}))
otel.SetErrorHandler(otel.ErrorHandlerFunc(func(e error) {
logx.Errorf("[otel] error: %v", err)
}))