-
Notifications
You must be signed in to change notification settings - Fork 908
Declarative config 0.4 #7064
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
Declarative config 0.4 #7064
Conversation
…y-java into schema-and-subschemas
Codecov ReportAttention: Patch coverage is
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. 🚀 New features to boost your workflow:
|
...emetry/exporter/logging/otlp/internal/logs/OtlpStdoutLogRecordExporterComponentProvider.java
Show resolved
Hide resolved
...main/java/io/opentelemetry/exporter/otlp/internal/OtlpGrpcSpanExporterComponentProvider.java
Show resolved
Hide resolved
...entelemetry/sdk/extension/incubator/fileconfig/component/ResourceFirstComponentProvider.java
Show resolved
Hide resolved
...telemetry/exporter/logging/otlp/internal/traces/OtlpStdoutSpanExporterComponentProvider.java
Show resolved
Hide resolved
...main/java/io/opentelemetry/exporter/otlp/internal/OtlpGrpcSpanExporterComponentProvider.java
Show resolved
Hide resolved
sdk/common/src/main/java/io/opentelemetry/sdk/internal/GlobUtil.java
Outdated
Show resolved
Hide resolved
sdk/common/src/main/java/io/opentelemetry/sdk/internal/GlobUtil.java
Outdated
Show resolved
Hide resolved
.../main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/CardinalityLimitsFactory.java
Show resolved
Hide resolved
...r/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MetricReaderFactory.java
Show resolved
Hide resolved
...a/io/opentelemetry/sdk/extension/incubator/fileconfig/OpenTelemetryConfigurationFactory.java
Outdated
Show resolved
Hide resolved
.../main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/LogRecordExporterFactory.java
Outdated
Show resolved
Hide resolved
…-java into declarative-config-0.4
sdk/common/src/test/java/io/opentelemetry/sdk/internal/GlobUtilTest.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ResourceDetectorFactory.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ResourceDetectorFactory.java
Outdated
Show resolved
Hide resolved
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"); | ||
} |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
...c/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MetricReaderFactoryTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
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. |
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.