Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite MBTA Api using Req instead of HTTPoison #1999

Merged
merged 19 commits into from
Apr 25, 2024
Merged

Conversation

anthonyshull
Copy link
Contributor

@anthonyshull anthonyshull commented Apr 19, 2024

https://app.asana.com/0/555089885850811/1206825410497903/f

We want to instrument calls to the MBTA Api with telemetry. Req uses Finch which does that out of the box. It also does other things automatically like decompressing gzip. So, it makes sense to just switch to using Req.

Devops PR: https://github.com/mbta/devops/pull/1730

@anthonyshull anthonyshull force-pushed the ags/rewrite-mbta-api branch from fd67380 to 19719fc Compare April 22, 2024 19:01
@anthonyshull anthonyshull marked this pull request as ready for review April 22, 2024 19:56
@anthonyshull anthonyshull requested a review from a team as a code owner April 22, 2024 19:56
@anthonyshull anthonyshull requested a review from kotva006 April 22, 2024 19:56
Comment on lines +111 to +114
base_url: System.get_env("MBTA_API_BASE_URL"),
enable_experimental_features: System.get_env("MBTA_API_ENABLE_EXPERIMENTAL_FEATURES"),
key: System.get_env("MBTA_API_KEY"),
version: System.get_env("MBTA_API_VERSION", "2019-07-01")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

📓 I am renaming all of these ENV vars to be in line with what they do

@anthonyshull anthonyshull marked this pull request as draft April 22, 2024 23:54
@anthonyshull anthonyshull marked this pull request as ready for review April 23, 2024 14:15
@anthonyshull anthonyshull requested a review from thecristen April 24, 2024 13:47
README.md Outdated Show resolved Hide resolved
@anthonyshull anthonyshull requested a review from kotva006 April 24, 2024 15:56
@anthonyshull anthonyshull force-pushed the ags/rewrite-mbta-api branch from acdf63a to 521f342 Compare April 24, 2024 22:52
@anthonyshull anthonyshull merged commit 1cf953c into main Apr 25, 2024
17 checks passed
@anthonyshull anthonyshull deleted the ags/rewrite-mbta-api branch April 25, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants