Add missing file

This commit is contained in:
Till Faelligen 2023-03-03 17:56:41 +01:00
parent da76ebe2ae
commit b4269f1add
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

19
internal/tracing_test.go Normal file
View file

@ -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()
}