-
Notifications
You must be signed in to change notification settings - Fork 264
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
Publish proto definitions to maven central #335
Comments
Just to add color...this has come up before, and the proto jar that is published out of the java project is not intended for general usage. In fact, we have recently updated the java exporters to not use it any more, and are strongly considering stopping the publishing of it altogether. |
Hmm. That's not a comment that I was aware existed. It's technically true, but shouldn't imply (at least for java, where we've still marked the proto artifact as |
@jsuereth thanks for pointing me to that PR, it looks like @anuraaga was highlighting the same friction. I'm actually advocating for the middle ground between @yurishkuro and @anuraaga. I agree opentelemetry-proto shouldn't have to publish the language specific classes but it should make it easy for languages to consume the raw proto itself, hence publishing it to maven central with the correct version.
Yes that sounds great to me. I assume here you're talking about releasing the |
And just to fully understand the tradeoff we're making, the downside to doing this in a separate repo is that it is yet another place that needs an update and release when a new OTLP version is released here. |
I just realized another reason why you probably wouldn't want to use opentelemetry-java's published protos, anyway. We don't guarantee any sort of timely update to our proto library, since we want to wait until the collector has baked in the new version before we incorporate it into the library itself. So, 👍🏽 on a separate project for managing that publishing. |
Yeah I think a separate repo to handle proto publishing is a good idea - will look into setting that up. It seems weird for
Since we only use the protos in tests in the SDK repo now, I think we'll just use this new one and remove our current opentelemetry-proto so no worries here I think. |
My point was that if this repo, open-telemetry/opentelemetry-proto, published to maven central as part of its release process there wouldn't be extra work. My impression is though the maintainers of the opentelemetry-proto itself don't want language specific release details in this repository. |
Thanks for the patience @cwildman - we are publishing protos using the OTLP versions to Maven Central now https://github.com/open-telemetry/opentelemetry-proto-java/releases/tag/v0.11.0 https://repo1.maven.org/maven2/io/opentelemetry/proto/opentelemetry-proto/0.11.0-alpha/ Let me know if you see any issues. |
@anuraaga this is great news! I gave it a try and everything is working as expected. Thanks! |
awesome. we're going to deprecate the proto being published by otel-java and remove it altogether in 1.8.0 |
Also, @cwildman, it looks like the new repo needs some documentation love. Would you be willing to do some doc work here? |
@jkwatson yes I can help with that. |
For Java projects it would be developer friendly to have the OpenTelemetry proto definitions published to maven central with a release tagged with the correct OTLP version.
The existing ways to use these proto definitions or their generated classes in Java projects are:
It would be much more convenient to just have the proto definitions published in a jar to maven central to be used by standard Java build tooling. For example using the protobuf-gradle-plugin to reference a proto dependency.
Alternatively #2 would work if OpenTelemetry Java was willing to tag the
opentelemetry-proto
releases with the OTLP version but that proposal did not get traction. See the discussion in #otel-java slack here.I'm interested in other ideas to streamline this. I realize this isn't a huge issue but it's certainly awkward to work with as-is.
The text was updated successfully, but these errors were encountered: