Skip to content

Commit

Permalink
Remove opentracing
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed May 24, 2024
1 parent a585e1e commit 3b6690a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/tracer/tracer.go
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
package tracer

import (
"github.com/opentracing/opentracing-go"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer"
ddTracer "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"os"
)

var t opentracing.Tracer

func GetTracer() opentracing.Tracer {
if t == nil {
NewTracer()
}
return t
}

func NewTracer() opentracing.Tracer {
if os.Getenv("TESTING") == "true" {
t = opentracing.NoopTracer{}
}
t = opentracer.New(
ddTracer.WithGlobalServiceName(true),
)
return t
}

func StartTracer() {
ddTracer.Start(
ddTracer.WithGlobalServiceName(true),
Expand Down

0 comments on commit 3b6690a

Please sign in to comment.