You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: ../../../go/pkg/mod/go.elastic.co/apm/module/apmotel/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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)
To Reproduce
Steps to reproduce the behavior:
create a project
use apmotel and otel libs 1.21+
run any go command (test, build, etc.)
See error
Expected behavior
No error
The text was updated successfully, but these errors were encountered:
kruskall
changed the title
apmotel compile error with newer version of otel lirbaries
apmotel compile error with newer version of otel libraries
Apr 9, 2024
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:
elastic/apm-server#12924
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error
The text was updated successfully, but these errors were encountered: