Skip to content

Update the OpenTelemetry SDK version to 1.62.0#18641

Merged
trask merged 6 commits into
mainfrom
otelbot/update-opentelemetry-sdk-to-1.62.0
May 9, 2026
Merged

Update the OpenTelemetry SDK version to 1.62.0#18641
trask merged 6 commits into
mainfrom
otelbot/update-opentelemetry-sdk-to-1.62.0

Conversation

@otelbot

@otelbot otelbot Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Update the OpenTelemetry SDK version to 1.62.0.

@otelbot otelbot Bot requested a review from a team as a code owner May 8, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/fileconfig to sdk-extension-declarative-config packages 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.

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);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@trask trask merged commit cb44c53 into main May 9, 2026
95 checks passed
@trask trask deleted the otelbot/update-opentelemetry-sdk-to-1.62.0 branch May 9, 2026 16:29
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.

3 participants