diff --git a/internal/tracing_test.go b/internal/tracing_test.go new file mode 100644 index 000000000..a09f74d21 --- /dev/null +++ b/internal/tracing_test.go @@ -0,0 +1,19 @@ +package internal + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestTracing(t *testing.T) { + inCtx := context.Background() + + tr, ctx := StartRegion(inCtx, "testing") + assert.NotNil(t, ctx) + assert.NotEqual(t, inCtx, ctx) + assert.NotNil(t, tr) + tr.SetTag("key", "value") + defer tr.End() +}