chore: bump gopkg.in/DataDog/dd-trace-go.v1 from 1.57.0 to 1.61.0 (#12610)

* chore: bump gopkg.in/DataDog/dd-trace-go.v1 from 1.57.0 to 1.61.0

* Fix tracer implementation
* Use alias vs 2 structs
This commit is contained in:
Steven Masley
2024-03-17 22:08:32 -05:00
committed by GitHub
parent b4c0fa80d8
commit c189cc93e4
3 changed files with 37 additions and 7 deletions

View File

@ -9,6 +9,7 @@ import (
"testing"
"go.opentelemetry.io/otel/trace"
"go.opentelemetry.io/otel/trace/noop"
"github.com/go-chi/chi/v5"
"github.com/stretchr/testify/require"
@ -17,7 +18,13 @@ import (
"github.com/coder/coder/v2/testutil"
)
// noopTracer is just an alias because the fakeTracer implements a method
// with the same name 'Tracer'. Kinda dumb, but this is a workaround.
type noopTracer = noop.Tracer
type fakeTracer struct {
noop.TracerProvider
noopTracer
startCalled int64
}