[staticcheck] reported by reviewdog 🐶
# github.com/zeromicro/go-zero/core/trace [github.com/zeromicro/go-zero/core/trace.test]
core/trace/message_test.go:17:53: cannot use &span (value of type *mockSpan) as "go.opentelemetry.io/otel/trace".Span value in argument to trace.ContextWithSpan: *mockSpan does not implement "go.opentelemetry.io/otel/trace".Span (missing method span)
core/trace/message_test.go:26:53: cannot use &span (value of type *mockSpan) as "go.opentelemetry.io/otel/trace".Span value in argument to trace.ContextWithSpan: *mockSpan does not implement "go.opentelemetry.io/otel/trace".Span (missing method span)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/zeromicro/go-zero/core/trace [github.com/zeromicro/go-zero/core/trace.test]\ncore/trace/message_test.go:17:53: cannot use &span (value of type *mockSpan) as \"go.opentelemetry.io/otel/trace\".Span value in argument to trace.ContextWithSpan: *mockSpan does not implement \"go.opentelemetry.io/otel/trace\".Span (missing method span)\ncore/trace/message_test.go:26:53: cannot use &span (value of type *mockSpan) as \"go.opentelemetry.io/otel/trace\".Span value in argument to trace.ContextWithSpan: *mockSpan does not implement \"go.opentelemetry.io/otel/trace\".Span (missing method span)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0}}},"severity":"ERROR"}