mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user