Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/tracer.go:67:19: impossible type assertion: trace.SpanFromContext(ctx).(*span)
*span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/tracer.go:96:38: cannot use s (variable of type *span) as trace.Span value in argument to trace.ContextWithSpan: *span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/tracer.go:96:42: cannot use s (variable of type *span) as trace.Span value in return statement: *span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/tracer.go:116:36: cannot use s (variable of type *span) as trace.Span value in argument to trace.ContextWithSpan: *span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/tracer.go:116:40: cannot use s (variable of type *span) as trace.Span value in return statement: *span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/wrapper.go:53:36: cannot use &span{…} (value of type *span) as trace.Span value in argument to trace.ContextWithSpan: *span does not implement trace.Span (missing method AddLink)
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/v2@v2.5.0/wrapper.go:73:36: cannot use &span{…} (value of type *span) as trace.Span value in argument to trace.ContextWithSpan: *span does not implement trace.Span (missing method AddLink) (compile)
Describe the bug
Projects using both apmotel and otel libraries won't be able to update the otel libraries because of a compile error with apmotel.
Example failure:
https://github.com/elastic/apm-server/pull/12924
To Reproduce Steps to reproduce the behavior:
Expected behavior No error