Update OpenTelemetry to 1.62.0, AB#3611236, Fixes AB#3611236#3125
Update OpenTelemetry to 1.62.0, AB#3611236, Fixes AB#3611236#3125rpdome wants to merge 1 commit into
Conversation
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
|
Please refer to this document for more details. |
There was a problem hiding this comment.
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
openTelemetryVersionfrom1.18.0to1.62.0. - Update
BenchmarkSpan.setAttribute(AttributeKey<T>, value)to accept a nullablevalueto 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. |
f155aac to
f7e1444
Compare
- 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).
f7e1444 to
fa1f34b
Compare
|
✅ Work item link check complete. Description contains link AB#3611236 to an Azure Boards work item. |
|
❌ Invalid work item number: AB#3611236 Updates. Work item number must be a valid integer. Click here to learn more. |
AB#3611236
Updates
opentelemetry-api(and transitives) from 1.18.0 to 1.62.0.Changes
gradle/versions.gradle--openTelemetryVersion1.18.0 -> 1.62.0BenchmarkSpan.kt--setAttribute(key, value: T)->value: T?to match the@Nullableannotation onSpan.setAttribute(AttributeKey<T>, T)in newer versions.common/build.gradle-- pinopentelemetry-extension-kotlinto 1.18.0 via a newopenTelemetryExtensionKotlinVersionvariable. Newerextension-kotlinreleases add astrictlykotlin-stdlib2.x constraint that conflicts with the project's Kotlin 1.8 compiler. The pin is binary-compatible withopentelemetry-api/-context1.62 --extension-kotlinonly calls stableContextAPIs that are unchanged across 1.18 -> 1.62.