Title: Faraday 2.0 requires locking to ~> 1.0 or switching to faraday-net_http · Issue #1663 · getsentry/sentry-ruby · GitHub
Open Graph Title: Faraday 2.0 requires locking to ~> 1.0 or switching to faraday-net_http · Issue #1663 · getsentry/sentry-ruby
X Title: Faraday 2.0 requires locking to ~> 1.0 or switching to faraday-net_http · Issue #1663 · getsentry/sentry-ruby
Description: Issue Description Faraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading I'd suggest switching to faraday-net_http...
Open Graph Description: Issue Description Faraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading I...
X Description: Issue Description Faraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading I...
Opengraph URL: https://github.com/getsentry/sentry-ruby/issues/1663
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Faraday 2.0 requires locking to ~> 1.0 or switching to faraday-net_http","articleBody":"### Issue Description\r\n\r\nFaraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading\r\n\r\nI'd suggest switching to `faraday-net_http` and setting `Faraday.default_adapter = :net_http` since this will remove a number of dependencies. Alternatively, it seems you could lock to ~> 1.0, or consider using net_http directly instead of relying on Faraday to sidestep this issue entirely. \r\n\r\nI'm not sure what's best... locking Faraday to ~> 1.0 might be easiest in the short term, but may cause issues later as users may want to upgrade to Faraday ~> 2.0 for other reasons. Perhaps `sentry-ruby` could detect which version is being used somehow, and switch based on that, but I don't believe you can customize the gem dependencies, so you may need to pick a \"winner\" between the two in the long term\r\n\r\nI ran into a similar problem with gem dependencies here: https://github.com/geokit/geokit/pull/250\r\n\r\nSo perhaps dropping the dependency might be best, but that may result in users needing code changes in order to use Sentry, for example if they're setting `transport_configuration.http_adapter` etc, and of course even that change could significant work on your end. \r\n\r\nFor now, I believe I can just manually lock Faraday to ~> 1.0 in my Gemfile, even though I'm only using Faraday because of Sentry. \r\n\r\nAnyway, this is a tricky problem -- I'm happy to help if I'm able. Thank you for your attention!","author":{"url":"https://github.com/trevorturk","@type":"Person","name":"trevorturk"},"datePublished":"2022-01-04T19:16:03Z","url":"https://github.com/getsentry/sentry-ruby/issues/1663"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d87457eb-1e96-13fa-c6ec-1b708dda1e0d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DEE:1B4D88:A31F5B:E6125A:6B0457F3 |
| html-safe-nonce | 8cf52efe92a1ebe907bbee83ddee108acbea88777b202746183e88cc404b37aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REVFOjFCNEQ4ODpBMzFGNUI6RTYxMjVBOjZCMDQ1N0YzIiwidmlzaXRvcl9pZCI6Ijg2NzU5MDU4NTM2MjcwMDI3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d794f41f29fa9224169d932a0f3b034436bcfed5b72323b0b9ffde901125cf0 |
| hovercard-subject-tag | issue:1093677890 |
| 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/getsentry/sentry-ruby/1663/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a22f8854c4a3ff0542afb644c9b85475473eda0fa985315970275be518d7df00/getsentry/sentry-ruby/issues/1663 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a22f8854c4a3ff0542afb644c9b85475473eda0fa985315970275be518d7df00/getsentry/sentry-ruby/issues/1663 |
| og:image:alt | Issue Description Faraday 2.0 was released with major changes: https://github.com/lostisland/faraday/blob/main/UPGRADING.md#thats-great-what-should-i-change-in-my-code-immediately-after-upgrading I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trevorturk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-ruby git https://github.com/getsentry/sentry-ruby.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3947396 |
| octolytics-dimension-repository_nwo | getsentry/sentry-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3947396 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-ruby |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width