Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummy_span is not compatible with opentelemetry-go v1.25.0 #189

Open
adriantam opened this issue Apr 10, 2024 · 4 comments
Open

dummy_span is not compatible with opentelemetry-go v1.25.0 #189

adriantam opened this issue Apr 10, 2024 · 4 comments

Comments

@adriantam
Copy link

If holster library is used in a project that has opentelemetry-go v1.25.0 or above, it will fail to build due to

# github.com/mailgun/holster/v4/tracing
../../../../go/pkg/mod/github.com/mailgun/holster/v4@v4.16.4/tracing/dummy_span.go:30:35: cannot use span (variable of type *DummySpan) as "go.opentelemetry.io/otel/trace".Span value in argument to trace.ContextWithSpan: *DummySpan does not implement "go.opentelemetry.io/otel/trace".Span (missing method AddLink)
../../../../go/pkg/mod/github.com/mailgun/holster/v4@v4.16.4/tracing/dummy_span.go:32:14: cannot use span (variable of type *DummySpan) as "go.opentelemetry.io/otel/trace".Span value in return statement: *DummySpan does not implement "go.opentelemetry.io/otel/trace".Span (missing method AddLink)
make: *** [build] Error 1

Root cause of issue is that opentelemetry-go v1.25.0 now expects trace interface to have AddLink(link Link)

@vtopc
Copy link
Contributor

vtopc commented Apr 10, 2024

We are not using opentelemetry-go v1.25.0 here - https://github.com/mailgun/holster/blob/master/go.mod#L31

@adriantam
Copy link
Author

adriantam commented Apr 18, 2024

We are not using opentelemetry-go v1.25.0 here - https://github.com/mailgun/holster/blob/master/go.mod#L31

The problem is any project that uses this library AND otel.Trace v1.25.0 will have problem because of interface incompatibility.

@vikmik
Copy link
Contributor

vikmik commented Apr 22, 2024

FYI #192 has been merged, which might help unblock you for now.

@inge4pres
Copy link
Contributor

#191 is also fixing this by upgrading the OTel dependencies to 1.25 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants