Skip to content
Snippets Groups Projects
Commit 3f5c3e1b authored by ale's avatar ale
Browse files

Only invoke initTracing if tracing is actually enabled

parent 568d6edb
No related branches found
Tags
No related merge requests found
......@@ -93,6 +93,9 @@ func init() {
}
func initTracing(endpointAddr string) {
if !Enabled {
return
}
initOnce.Do(func() {
localEndpoint, err := openzipkin.NewEndpoint(getServiceName(), endpointAddr)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment