From f6206533198887f4ec4bb4882d2165cadfa9526c Mon Sep 17 00:00:00 2001 From: anhnv Date: Thu, 17 Aug 2023 16:07:46 +0700 Subject: [PATCH] refactor: update error message when provider was initialized failed --- pkg/metric/provider.go | 2 +- pkg/tracer/provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/metric/provider.go b/pkg/metric/provider.go index f07e773..a9a9bfd 100644 --- a/pkg/metric/provider.go +++ b/pkg/metric/provider.go @@ -87,7 +87,7 @@ func initProvider() { exporter, err := newOTLPExporter() if err != nil { - fmt.Println(err.Error()) + fmt.Printf("kyber-trace-go: failed to init metric provider, %s", err) return } diff --git a/pkg/tracer/provider.go b/pkg/tracer/provider.go index b74cd6f..c8e6617 100644 --- a/pkg/tracer/provider.go +++ b/pkg/tracer/provider.go @@ -93,7 +93,7 @@ func initProvider() { exporter, err := newOTLPExporter() if err != nil { - fmt.Println(err.Error()) + fmt.Printf("kyber-trace-go: failed to init tracer provider, %s", err) return }