Update the OpenTelemetry SDK version to 1.63.0#18911
Merged
Merged
Conversation
OpenTelemetry 1.63 moved declarative config model classes under sdk.autoconfigure.declarativeconfig.model and moved InstrumentationUtil under api.impl, while removing the extended log testing APIs used by compatibility helpers. Update those package references, keep the InstrumentationUtil javaagent bridge matching both old and new application class names, and convert incubating extended log attributes into the current Attributes/Value representation. Validation: .\gradlew.bat :sdk-autoconfigure-support:compileJava :instrumentation-api:test --tests SpanSuppressionStrategyTest :javaagent-tooling:test --tests SpanLoggingCustomizerProviderTest --tests ResourceCustomizerProviderTest :instrumentation:spring:spring-boot-autoconfigure:test --tests '*SpanLoggingCustomizerProviderTest' :declarative-config-bridge:test :testing-common:compileJava :testing:agent-exporter:compileJava :instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent:incubatorTest --tests '*LoggerTest' Co-authored-by: Copilot <[email protected]>
…telemetry-sdk-to-1.63.0 # Conflicts: # testing-common/src/main/java/io/opentelemetry/instrumentation/testing/internal/TelemetryConverter.java
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
The 1.47 incubator logs bridge referenced an API shape that is only valid in later incubator versions, which caused muzzle failures across unrelated test shards and pulled in unavailable SDK testing internals. Remove the unsupported 1.47 logs bridge, keep the 1.47 module focused on trace/metrics, stop forcing the old SDK testing artifact, and apply the Spotless-required comment wrap. Validation: .\gradlew.bat :instrumentation:opentelemetry-api:opentelemetry-api-1.27:javaagent:spotlessCheck :instrumentation:opentelemetry-api:opentelemetry-api-1.47:javaagent:spotlessCheck :instrumentation:opentelemetry-api:opentelemetry-api-1.50:javaagent:spotlessCheck :instrumentation:opentelemetry-api:opentelemetry-api-1.47:javaagent:test :instrumentation:opencensus-shim:testing:test
…telemetry-sdk-to-1.63.0
Comment on lines
+383
to
+393
| builder = | ||
| invoke( | ||
| builder, "setSeverityText", new Class<?>[] {String.class}, logRecord.getSeverityText()); | ||
| builder = | ||
| invoke(builder, "setEventName", new Class<?>[] {String.class}, logRecord.getEventName()); | ||
| builder = | ||
| invoke( | ||
| builder, | ||
| "setBodyValue", | ||
| new Class<?>[] {Value.class}, | ||
| getBodyValue(logRecord.getBody())); |
| include(":instrumentation:opentelemetry-api:opentelemetry-api-1.57:javaagent") | ||
| include(":instrumentation:opentelemetry-api:opentelemetry-api-1.59:javaagent") | ||
| include(":instrumentation:opentelemetry-api:opentelemetry-api-1.61:testing") | ||
| include(":instrumentation:opentelemetry-api:opentelemetry-api-1.63:javaagent") |
laurit
reviewed
Jun 9, 2026
|
|
||
| @Override | ||
| @CanIgnoreReturnValue | ||
| public application.io.opentelemetry.api.logs.LogRecordBuilder setException(Throwable throwable) { |
laurit
reviewed
Jun 9, 2026
| import io.opentelemetry.api.logs.LogRecordBuilder; | ||
| import io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_42.logs.ApplicationLogRecordBuilder142; | ||
|
|
||
| public class ApplicationLogRecordBuilder147Incubator extends ApplicationLogRecordBuilder142 |
Contributor
There was a problem hiding this comment.
I guess this got removed because it was too annoying to test? I think we might need a better strategy. Maybe shading something in would help? Or perhaps allow tests to provide custom conversions for TelemetryConverter.
laurit
approved these changes
Jun 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.63.0.