Title: Opentelemetry-context conflict, please bump google-api-client dependency · Issue #1138 · firebase/firebase-admin-java · GitHub
Open Graph Title: Opentelemetry-context conflict, please bump google-api-client dependency · Issue #1138 · firebase/firebase-admin-java
X Title: Opentelemetry-context conflict, please bump google-api-client dependency · Issue #1138 · firebase/firebase-admin-java
Description: Please bump opentelemetry versions to 1.50 or higher. [READ] Step 1: Are you in the right place? Yes, this issue is for the code in this repository. [REQUIRED] Step 2: Describe your environment Operating System version: Any (e.g., Linux,...
Open Graph Description: Please bump opentelemetry versions to 1.50 or higher. [READ] Step 1: Are you in the right place? Yes, this issue is for the code in this repository. [REQUIRED] Step 2: Describe your environment Ope...
X Description: Please bump opentelemetry versions to 1.50 or higher. [READ] Step 1: Are you in the right place? Yes, this issue is for the code in this repository. [REQUIRED] Step 2: Describe your environment Ope...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1138
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Opentelemetry-context conflict, please bump google-api-client dependency ","articleBody":"Please bump opentelemetry versions to 1.50 or higher.\n\n[READ] Step 1: Are you in the right place?\nYes, this issue is for the code in this repository.\n\n[REQUIRED] Step 2: Describe your environment\nOperating System version: Any (e.g., Linux, macOS, Windows)\n\nFirebase SDK version: 9.6.0 (and likely all newer versions)\n\nLibrary version: 9.6.0\n\nFirebase Product: Admin SDK (Core)\n\n[REQUIRED] Step 3: Describe the problem\nThe firebase-admin SDK brings in an old version of io.opentelemetry:opentelemetry-context as a transitive dependency. This causes NoSuchMethodError exceptions at runtime for applications that use modern versions of the OpenTelemetry Java SDK.\n\nThe dependency chain is as follows:\ncom.google.firebase:firebase-admin → com.google.api-client:google-api-client → com.google.http-client:google-http-client → io.opentelemetry:opentelemetry-context\n\nNewer OpenTelemetry libraries rely on the Context.getAll() method, which was introduced in opentelemetry-java v1.33.0. The commit that introduced this change is [here](https://github.com/open-telemetry/opentelemetry-java/commit/ccfcecf8fe35bf68a74f7d1242397a8574d59826).\n\nBecause firebase-admin depends on an older version of google-api-client, it forces a downgrade of opentelemetry-context, leading to the following error when newer instrumentation libraries are used:\njava.lang.NoSuchMethodError: 'java.lang.Iterable io.opentelemetry.context.Context.getAll()\n\nThe current workaround is to manually exclude the transitive dependency in the build configuration, but the correct long-term solution is to update the google-api-client dependency in this project.\n\nSteps to reproduce:\nCreate a new Maven project.\n\nAdd a dependency on firebase-admin.\n\nAdd a dependency on a newer OpenTelemetry library that requires a modern opentelemetry-context (e.g., opentelemetry-exporter-otlp).\n\nMaven's dependency resolution will either select the older, incompatible version of opentelemetry-context or require manual intervention. If the older version is used, a NoSuchMethodError will occur at runtime when calling code that relies on Context.getAll().\n\nExample code:\n\nhttps://github.com/steffan-westcott/clj-otel/blob/d5bb87f8b99d8d30c98e320478260194ca559e4c/clj-otel-api/src/steffan_westcott/clj_otel/api/trace/http.clj#L303 (v2.8 \u0026 v2.9) doesn't work with io.opentelemetry:opentelemetry-context version 1.47\n\nThank you!","author":{"url":"https://github.com/hpclj","@type":"Person","name":"hpclj"},"datePublished":"2025-09-27T22:42:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1138/firebase-admin-java/issues/1138"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:01207dae-7a9a-a8e6-ddfb-67bb065eb2bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBDA:31CC5:2EBAB:3D96D:698E9C36 |
| html-safe-nonce | 0be04c0b8f1cee0735875181034a7a89c52bf27c9f263a4d46254c70a24cf3f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkRBOjMxQ0M1OjJFQkFCOjNEOTZEOjY5OEU5QzM2IiwidmlzaXRvcl9pZCI6IjUzODc4MTE5MDc5NDI5MTUxMjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d9334100bd44098b729a52d824351cd51fde6d1f4a3e87e4f1f98c9f98579e1c |
| hovercard-subject-tag | issue:3460820254 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/1138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80f36ab1a9a481885eb701096938a3a0fe1d3a84ba0d8d1aa3f0da3097eda6b3/firebase/firebase-admin-java/issues/1138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80f36ab1a9a481885eb701096938a3a0fe1d3a84ba0d8d1aa3f0da3097eda6b3/firebase/firebase-admin-java/issues/1138 |
| og:image:alt | Please bump opentelemetry versions to 1.50 or higher. [READ] Step 1: Are you in the right place? Yes, this issue is for the code in this repository. [REQUIRED] Step 2: Describe your environment Ope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hpclj |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979119 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979119 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width