Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

jack-berg
Copy link
Member

@jack-berg jack-berg commented Feb 3, 2025

v0.4.0 is a big release for declarative config, full of a large number of breaking changes, enhancements, and fixes as the result of applying additional scrutiny as we approach stability.

We anticipate limited churn going forward.

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 94.66667% with 24 lines in your changes missing coverage. Please review.

Project coverage is 90.02%. Comparing base (f17b8b0) to head (c97b59a).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...on/incubator/fileconfig/LoggerProviderFactory.java 80.00% 1 Missing and 4 partials ⚠️
...ion/incubator/fileconfig/MeterProviderFactory.java 84.84% 1 Missing and 4 partials ⚠️
...on/incubator/fileconfig/TracerProviderFactory.java 80.00% 1 Missing and 4 partials ⚠️
...incubator/fileconfig/CardinalityLimitsFactory.java 90.90% 1 Missing and 1 partial ⚠️
...sion/incubator/fileconfig/MetricReaderFactory.java 92.59% 1 Missing and 1 partial ⚠️
...ension/incubator/fileconfig/PropagatorFactory.java 92.00% 0 Missing and 2 partials ⚠️
...extension/incubator/fileconfig/FileConfigUtil.java 88.88% 1 Missing ⚠️
...xtension/incubator/fileconfig/ResourceFactory.java 95.23% 0 Missing and 1 partial ⚠️
...lemetry/sdk/internal/ScopeConfiguratorBuilder.java 97.22% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7064      +/-   ##
============================================
+ Coverage     89.61%   90.02%   +0.40%     
- Complexity     6858     6904      +46     
============================================
  Files           780      787       +7     
  Lines         20718    20846     +128     
  Branches       2020     2023       +3     
============================================
+ Hits          18566    18766     +200     
+ Misses         1512     1441      -71     
+ Partials        640      639       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jack-berg jack-berg marked this pull request as ready for review March 31, 2025 15:55
@jack-berg jack-berg requested a review from a team as a code owner March 31, 2025 15:55
@jack-berg jack-berg changed the title DRAFT: Declarative config 0.4 Declarative config 0.4 Mar 31, 2025
Comment on lines 38 to 52
if (model.getBaggage() != null) {
return getPropagator(spiHelper, "baggage");
}
if (model.getB3() != null) {
return getPropagator(spiHelper, "b3");
}
if (model.getB3multi() != null) {
return getPropagator(spiHelper, "b3multi");
}
if (model.getJaeger() != null) {
return getPropagator(spiHelper, "jaeger");
}
if (model.getOttrace() != null) {
return getPropagator(spiHelper, "ottrace");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait these can't be combined/composed? 😢

void create_Defaults() {
@ParameterizedTest
@MethodSource("createArguments")
void create(MeterProviderModel model, SdkMeterProvider expectedProvider) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using the toString() for testing seems error prone and fragile, but it's what we have right now....and anything else would understandably be quite difficult.

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really surprised at the sheer volume of code required to support configuration! I wonder if we'll have this exercise with every version, or if it's mostly that this one was particularly beefy....

Anyway, thanks for taking this on!

@jack-berg
Copy link
Member Author

Really surprised at the sheer volume of code required to support configuration! I wonder if we'll have this exercise with every version, or if it's mostly that this one was particularly beefy....

Yeah I'm a bit surprised the volume too. I think the volume / complexity of config mostly reflects the essential complexity of what otel specified requirements for SDKs up to this point. I.e. it can probably be expressed a little more concisely / simply, but not too much without being opinionated and chopping off concepts.

If we're as close to stabilizing declarative config as I think we are, this PR should be significantly larger than future PRs. The things that make for big PRs are: 1. large refactoring of the declarative config schema 2. large introduction of new declarative config schema. Both of those should be greatly reduced going forward.

@jack-berg jack-berg merged commit 9e3f702 into open-telemetry:main Apr 18, 2025
28 checks passed
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

Successfully merging this pull request may close these issues.

4 participants