-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Large number of dependencies when instrumenting a library #940
Comments
This seems like a reasonable ask to me. I'm going to add it to the SIG agenda to talk about tomorrow. I'll update with details of the discussion. |
Thanks! Let me know what I can do to help. Happy to write up a larger explanation of my issue. |
Looking into this the status code for the Span in the trace API uses |
We've gone from 14 direct (external) dependencies: Lines 5 to 20 in aff7a80
To 2: Lines 5 to 8 in b7df554
With these last two being testing dependencies. I feel like we could in the future build out the testing to only rely on the I'm going to close this at this point with all the reduction that we have achieved and if we want to tackle the last two a new issue can be opened to address them. |
Still need to do a release to get these savings published. |
@MrAlias Wow! This is fantastic. It took me about 10 minutes to open up the issue, but it obviously took far more work for the team to fix it. Thank you (and everyone else) for closing this out. I agree that testify and go-cmp are fine. Thanks again! |
First off, thanks for all the hard work on OpenTelemetry.
I recently ran into an issue with the go-redis package. Adding it to a new project pulled in a large set of dependencies, including
google.golang.org/grpc
andcloud.google.com/go
. It turns out this is because the go-redis package importsgo.opentelemetry.io/otel
. This situation is addressed in the READMEHowever, a library can't only depend on the
api
package. When using Go modules, the entirego.opentelemetry.io/otel
module is required. How feasible would it be to split the api and sdk packages into separate modules? This way, the api module could have a much smaller set of dependent packages, hopefully excludinggoogle.golang.org/grpc
.The text was updated successfully, but these errors were encountered: