GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Declarative config 0.4 by jack-berg · Pull Request #7064 · open-telemetry/opentelemetry-java

Conversation

@jack-berg

@jack-berg jack-berg commented Feb 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jack-berg added 8 commits November 22, 2024 15:06
@jack-berg
wip
86ce839
@jack-berg
wip
d97bba3
@jack-berg
Changes as of 12/4/24
5bf6a97
@jack-berg
Refactored OTLP exporter schema
9d0c25e
@jack-berg
changes as of 1/14/25
e016642
@jack-berg
reflect schemas and subschemas changes
83ba41b
@jack-berg
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
83a09a1
…y-java into schema-and-subschemas
@jack-berg
changes as of 1/15/25
15bd160
@codecov

codecov Bot commented Feb 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jack-berg added 17 commits February 10, 2025 17:51
@jack-berg
Merge banch 'main' of https://github.com/open-telemetry/opentelemetry…
4d1b409
…-java into declarative-config-0.4
@jack-berg
Reflect changes as of 2/10
e98de18
@jack-berg
Changes as of 03/04/2025
c972bb6
@jack-berg
Prototype support for cardinality limits
d385f07
@jack-berg
Changes as of 3/10/2025
611299e
@jack-berg
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
396f02e
…y-java into declarative-config-0.4
@jack-berg
Changes as of 3/11/2025
31af9ff
@jack-berg
Merge branch 'declarative-config-cardinality-limits' into declarative…
7ab9b34
…-config-0.4
@jack-berg
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
ea98d80
…y-java into declarative-config-0.4
@jack-berg
Add support for resource detectors
6267222
@jack-berg
Merge branch 'declarative-config-scopes' into declarative-config-0.4
36b7645
@jack-berg
Add meter and logger scope config
e9fe818
@jack-berg
Restore kitchen sink test
5d8165b
@jack-berg
Add more test coverage
b124b82
@jack-berg
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
14b362f
…y-java into declarative-config-0.4
@jack-berg
Enable kitchen-sink.yaml test
e19e260
@jack-berg
Use v0.4.0 tag
e5fb69a
@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
@jack-berg
Use 0.4 file_format
c7a708a
jack-berg added 2 commits March 31, 2025 11:23
@jack-berg
Restore werror
7f6f6ad
@jack-berg
Trailing comma
42db913
@jack-berg jack-berg mentioned this pull request Apr 8, 2025
Add resource detector name open-telemetry/opentelemetry-specification#4461
Merged
@breedx-splk
breedx-splk self-requested a review April 10, 2025 16:22
zeitlinger
zeitlinger reviewed Apr 11, 2025
View reviewed changes
Comment thread ...emetry/exporter/logging/otlp/internal/logs/OtlpStdoutLogRecordExporterComponentProvider.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...main/java/io/opentelemetry/exporter/otlp/internal/OtlpGrpcSpanExporterComponentProvider.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...entelemetry/sdk/extension/incubator/fileconfig/component/ResourceFirstComponentProvider.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 11, 2025
View reviewed changes
Comment thread ...telemetry/exporter/logging/otlp/internal/traces/OtlpStdoutSpanExporterComponentProvider.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 11, 2025
View reviewed changes
Comment thread ...main/java/io/opentelemetry/exporter/otlp/internal/OtlpGrpcSpanExporterComponentProvider.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@breedx-splk breedx-splk mentioned this pull request Apr 11, 2025
Example approach of making implementations more similar jack-berg/opentelemetry-java#19
Closed
breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread sdk/common/src/main/java/io/opentelemetry/sdk/internal/GlobUtil.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread sdk/common/src/main/java/io/opentelemetry/sdk/internal/GlobUtil.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread .../main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/CardinalityLimitsFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread ...r/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MetricReaderFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread ...a/io/opentelemetry/sdk/extension/incubator/fileconfig/OpenTelemetryConfigurationFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 16, 2025
View reviewed changes
Comment thread .../main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/LogRecordExporterFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

jack-berg added 3 commits April 17, 2025 10:21
@jack-berg
erge branch 'main' of https://github.com/open-telemetry/opentelemetry…
8b3402b
…-java into declarative-config-0.4
@jack-berg
PR feedback
8867113
@jack-berg
rename vars
35ce0dd
breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread sdk/common/src/test/java/io/opentelemetry/sdk/internal/GlobUtilTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...tor/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/PropagatorFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...c/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ResourceDetectorFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...c/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ResourceDetectorFactory.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread .../main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/TextMapPropagatorFactory.java
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");
}

@breedx-splk breedx-splk Apr 17, 2025

Copy link
Copy Markdown
Contributor

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? 😢

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread .../test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MeterProviderFactoryTest.java
void create_Defaults() {
@ParameterizedTest
@MethodSource("createArguments")
void create(MeterProviderModel model, SdkMeterProvider expectedProvider) {

@breedx-splk breedx-splk Apr 17, 2025

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
breedx-splk
breedx-splk reviewed Apr 17, 2025
View reviewed changes
Comment thread ...c/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MetricReaderFactoryTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

breedx-splk
breedx-splk approved these changes Apr 17, 2025
View reviewed changes

@breedx-splk breedx-splk left a comment

Copy link
Copy Markdown
Contributor

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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jack-berg
PR feedback
c97b59a
@jack-berg

jack-berg commented Apr 18, 2025

Copy link
Copy Markdown
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.

breedx-splk reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jack-berg
jack-berg merged commit 9e3f702 into open-telemetry:main Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@trask trask trask left review comments
@zeitlinger zeitlinger zeitlinger left review comments
@breedx-splk breedx-splk breedx-splk approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jack-berg @trask @zeitlinger @breedx-splk
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.