ipld-eth-server/vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer/tracer_test.go
2018-09-11 16:30:29 -05:00

21 lines
397 B
Go

package opentracer
import (
"testing"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/internal"
"github.com/stretchr/testify/assert"
)
func TestStart(t *testing.T) {
assert := assert.New(t)
ot := New()
dd, ok := internal.GetGlobalTracer().(ddtrace.Tracer)
assert.True(ok)
ott, ok := ot.(*opentracer)
assert.True(ok)
assert.Equal(ott.Tracer, dd)
}