Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7137 +/- ##
=========================================
Coverage 89.85% 89.85%
Complexity 6610 6610
=========================================
Files 740 740
Lines 19986 19986
Branches 1964 1964
=========================================
Hits 17958 17958
Misses 1439 1439
Partials 589 589 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jack-berg
left a comment
There was a problem hiding this comment.
Nice idea. Found more documentation about this capability here: https://docs.gradle.org/current/userguide/feature_variants.html
Its kind of strange. The syntax for instructing gradle to automatically include the dependencies required by the "incubating" feature would look something like:
implementation("io.opentelemetry:opentelemetry-sdk-trace")) {
capabilities {
requireCapability("io.opentelemetry:opentelemetry-sdk-trace-incubating")
}
}
With gradle able to resolve the dependencies of the -incubating feature based on contents from the *.module file (e.g. opentelemetry-sdk-trace-1.47.0.module).
Its not a syntax I expect most gradle users would be familiar with, so I wonder if we would be better off telling users to add the required opentelemetry-api-incubator instead of using the requireCapability syntax.
If we go in this direction, here are some other places we would want this:
- :sdk-extensions:jaeger-remote-sampler
- :exporters:common
- :exporters:otlp:all
- :exporters:sender:jdk
- :exporters:sender:okhttp
Seems like it could get complicated quickly.
I wonder if there's any lightweight way to instruct gradle to include the "optional" metadata in pom.xml without leveraging this gradle feature capability.
<scope>compile</scope>
<optional>true</optional>
|
See #7157 for a possible alternative |
|
what's the status on this, @trask ? Let's get it merged or closed in favor of the other one. |
|
closing in favor of the less invasive #7157 |
Resolves #7119
The published poms for the related modules, e.g. for
io.opentelemetry:opentelemetry-sdk-trace, would now include: