Update the OpenTelemetry SDK version to 1.62.0#18641
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates this repo to use OpenTelemetry Java SDK 1.62.0, including the corresponding declarative-config package changes that moved out of the incubator fileconfig extension.
Changes:
- Bump OpenTelemetry SDK (and alpha) versions to 1.62.0 across dependency management and examples.
- Migrate declarative config usage from
sdk-extension-incubator/fileconfigtosdk-extension-declarative-configpackages and update affected tests/providers. - Adjust packaging/tests for upstream behavior changes (e.g., Prometheus exporter host binding, ShadowJar excludes, refreshed license snapshot).
Reviewed changes
Copilot reviewed 32 out of 33 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| testing/agent-exporter/src/main/java/io/opentelemetry/javaagent/testing/provider/AgentTestExporterCustomizerProvider.java | Switches customizer/provider imports to the new declarative-config package/model types. |
| testing/agent-exporter/build.gradle.kts | Replaces incubator extension dependency with opentelemetry-sdk-extension-declarative-config. |
| testing-common/src/main/resources/META-INF/services/io.opentelemetry.sdk.autoconfigure.declarativeconfig.DeclarativeConfigurationCustomizerProvider | Normalizes the SPI services file entry formatting for the new provider interface. |
| testing-common/src/main/java/io/opentelemetry/instrumentation/testing/provider/TestExporterCustomizerProvider.java | Updates declarative-config imports to the new package/model types. |
| testing-common/build.gradle.kts | Replaces incubator extension dependency with opentelemetry-sdk-extension-declarative-config. |
| smoke-tests/src/test/java/io/opentelemetry/smoketest/PrometheusSmokeTest.java | Sets Prometheus exporter host env var to bind to 0.0.0.0 for container access. |
| sdk-autoconfigure-support/src/main/java/io/opentelemetry/instrumentation/logging/internal/AbstractSpanLoggingCustomizerProvider.java | Migrates to new declarative-config APIs and handles nullable processor lists in the model. |
| sdk-autoconfigure-support/build.gradle.kts | Switches API dependency from incubator extension to declarative-config extension. |
| licenses/licenses.md | Updates the javaagent dependency license report snapshot for the new dependency set/version. |
| licenses/jackson-dataformat-yaml-2.21.3.jar/META-INF/NOTICE | Removes embedded NOTICE snapshot for a dependency no longer present in the tracked javaagent set. |
| licenses/jackson-dataformat-yaml-2.21.3.jar/META-INF/LICENSE | Removes embedded LICENSE snapshot for a dependency no longer present in the tracked javaagent set. |
| javaagent/build.gradle.kts | Excludes MR-JAR OSGI manifest entries from shaded jars to avoid conflicts. |
| javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/SpanLoggingCustomizerProviderTest.java | Updates test imports to the new declarative-config packages/models. |
| javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/resources/ResourceCustomizerProviderTest.java | Updates imports and expected JSON shape for new model serialization defaults. |
| javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/SpanLoggingCustomizerProvider.java | Updates provider interface/model imports to new declarative-config packages. |
| javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/resources/ResourceCustomizerProvider.java | Migrates to new declarative-config packages and handles nullable detector list. |
| javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/JavaagentDistributionAccessCustomizerProvider.java | Updates declarative-config imports to the new packages/models. |
| javaagent-tooling/build.gradle.kts | Adds opentelemetry-sdk-extension-declarative-config dependency (with byte-buddy exclusion). |
| instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/logging/SpanLoggingCustomizerProviderTest.java | Updates declarative-config test imports to new packages/models. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/SpringDeclarativeConfigProperties.java | Switches to new DeclarativeConfiguration import and updates doc links to new upstream file location. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/SpringConfigProvider.java | Updates model import/package and refreshes javadoc references to new upstream locations. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/OpenTelemetryAutoConfiguration.java | Wires declarative-config types from the new package and updates model import. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/resources/ResourceCustomizerProvider.java | Updates imports and handles nullable detector list with the new model behavior. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/logging/DeclarativeConfigLoggingExporterAutoConfiguration.java | Updates declarative-config imports/packages and model import. |
| instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/EmbeddedConfigFile.java | Updates model import to the new declarative-config model package. |
| instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts | Replaces incubator extension dependency with declarative-config extension. |
| instrumentation/resources/library/src/test/java/io/opentelemetry/instrumentation/resources/internal/ResourceDeclarativeConfigTest.java | Updates DeclarativeConfiguration import to the new package. |
| instrumentation/resources/library/build.gradle.kts | Replaces incubator extension dependency with declarative-config extension for compile/test. |
| examples/extension/build.gradle.kts | Bumps example SDK version to 1.62.0. |
| examples/distro/buildSrc/src/main/kotlin/Versions.kt | Bumps distro example SDK version constant to 1.62.0. |
| dependencyManagement/build.gradle.kts | Updates the managed OpenTelemetry SDK version to 1.62.0. |
| declarative-config-bridge/src/test/java/io/opentelemetry/instrumentation/config/bridge/DeclarativeConfigPropertiesBridgeTest.java | Updates DeclarativeConfiguration/model imports to new packages. |
| declarative-config-bridge/build.gradle.kts | Switches test dependency to opentelemetry-sdk-extension-declarative-config. |
trask
reviewed
May 8, 2026
trask
reviewed
May 8, 2026
Comment on lines
-45
to
+49
| List<ExperimentalResourceDetectorModel> detectors = | ||
| requireNonNull(detectionModel.getDetectors()); | ||
| List<ExperimentalResourceDetectorModel> detectors = detectionModel.getDetectors(); | ||
| if (detectors == null) { | ||
| detectors = new ArrayList<>(); | ||
| detectionModel.withDetectors(detectors); | ||
| } |
Member
There was a problem hiding this comment.
change due to open-telemetry/opentelemetry-java#8356
trask
reviewed
May 8, 2026
Comment on lines
-63
to
+74
| for (SpanProcessorModel processor : tracerProvider.getProcessors()) { | ||
| List<SpanProcessorModel> processors = tracerProvider.getProcessors(); | ||
| if (processors == null) { | ||
| return false; | ||
| } | ||
| for (SpanProcessorModel processor : processors) { |
Member
There was a problem hiding this comment.
change due to open-telemetry/opentelemetry-java#8356
trask
approved these changes
May 8, 2026
laurit
approved these changes
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update the OpenTelemetry SDK version to
1.62.0.