Skip to content

Update OpenTelemetry to 1.62.0, AB#3611236, Fixes AB#3611236#3125

Open
rpdome wants to merge 1 commit into
devfrom
rapong/opentelemetryupdate
Open

Update OpenTelemetry to 1.62.0, AB#3611236, Fixes AB#3611236#3125
rpdome wants to merge 1 commit into
devfrom
rapong/opentelemetryupdate

Conversation

@rpdome
Copy link
Copy Markdown
Member

@rpdome rpdome commented May 19, 2026

AB#3611236

Updates opentelemetry-api (and transitives) from 1.18.0 to 1.62.0.

Changes

  • gradle/versions.gradle -- openTelemetryVersion 1.18.0 -> 1.62.0
  • BenchmarkSpan.kt -- setAttribute(key, value: T) -> value: T? to match the @Nullable annotation on Span.setAttribute(AttributeKey<T>, T) in newer versions.
  • common/build.gradle -- pin opentelemetry-extension-kotlin to 1.18.0 via a new openTelemetryExtensionKotlinVersion variable. Newer extension-kotlin releases add a strictly kotlin-stdlib 2.x constraint that conflicts with the project's Kotlin 1.8 compiler. The pin is binary-compatible with opentelemetry-api/-context 1.62 -- extension-kotlin only calls stable Context APIs that are unchanged across 1.18 -> 1.62.

@rpdome rpdome requested a review from a team as a code owner May 19, 2026 17:59
Copilot AI review requested due to automatic review settings May 19, 2026 17:59
@github-actions
Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

⚠️ Warning: Changes detected in the 'versions.gradle' file! ⚠️

Please refer to this document for more details.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the OpenTelemetry API dependency version used by the Common libraries, and adjusts a Kotlin Span wrapper to match updated nullability in the newer OpenTelemetry API.

⚠️ Warning: Changes detected ⚠️

Please follow the recommendations in Adding or Updating Gradle Dependencies.

Changes:

  • Bump openTelemetryVersion from 1.18.0 to 1.62.0.
  • Update BenchmarkSpan.setAttribute(AttributeKey<T>, value) to accept a nullable value to align with newer OpenTelemetry nullability annotations.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
gradle/versions.gradle Updates the centralized OpenTelemetry version used across modules.
common4j/src/main/com/microsoft/identity/common/java/opentelemetry/BenchmarkSpan.kt Aligns Span.setAttribute wrapper signature with newer OpenTelemetry API nullability.

@rpdome rpdome force-pushed the rapong/opentelemetryupdate branch from f155aac to f7e1444 Compare May 19, 2026 19:42
@rpdome rpdome added the Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR label May 19, 2026
@rpdome rpdome changed the title Update OpenTelemetry to 1.62.0 Update OpenTelemetry to 1.62.0, AB#3611236 May 19, 2026
- versions.gradle: openTelemetryVersion 1.18.0 -> 1.62.0
- BenchmarkSpan.kt: setAttribute value parameter T -> T? to match the
  @nullable annotation on Span.setAttribute(AttributeKey<T>, T) in newer
  versions.
- common/build.gradle: pin opentelemetry-extension-kotlin to 1.18.0 via a
  new openTelemetryExtensionKotlinVersion variable. Newer extension-kotlin
  releases add a 'strictly' kotlin-stdlib 2.x constraint that conflicts
  with the project's Kotlin 1.8 compiler. The pin is binary-compatible
  with opentelemetry-api/context 1.62 (extension-kotlin only calls stable
  Context APIs unchanged across 1.18 -> 1.62).
@rpdome rpdome force-pushed the rapong/opentelemetryupdate branch from f7e1444 to fa1f34b Compare May 19, 2026 22:21
@rpdome rpdome requested a review from a team as a code owner May 19, 2026 22:21
@github-actions
Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3611236 to an Azure Boards work item.

@github-actions
Copy link
Copy Markdown

❌ Invalid work item number: AB#3611236

Updates. Work item number must be a valid integer.

Click here to learn more.

@github-actions github-actions Bot changed the title Update OpenTelemetry to 1.62.0, AB#3611236 Update OpenTelemetry to 1.62.0, AB#3611236, Fixes AB#3611236 May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants