Skip to content

Commit

Permalink
refactor: update error message when provider was initialized failed
Browse files Browse the repository at this point in the history
  • Loading branch information
anhvietnguyennva committed Aug 17, 2023
1 parent 0b2f621 commit f620653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/metric/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/tracer/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f620653

Please sign in to comment.