Skip to content

Instrument HTTP requests for In-Person-Proofing#6685

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/instrument-usps-ipp-request
Aug 3, 2022
Merged

Instrument HTTP requests for In-Person-Proofing#6685
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/instrument-usps-ipp-request

Conversation

@mitchellhenke
Copy link
Contributor

@mitchellhenke mitchellhenke commented Aug 3, 2022

So that we can have better visibility into the volume, success rate, and timing of the requests

(documentation for this added in #6686)

changelog: Internal, Logging, Instrument HTTP requests for In-Person-Proofing
Copy link
Contributor

@NavaTim NavaTim left a comment

Choose a reason for hiding this comment

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

Looks good to me.

parse_facilities(
faraday.post(url, body, headers).body,
faraday.post(url, body, headers) do |req|
req.options.context = { service_name: 'usps_facilities' }
Copy link
Contributor

@NavaTim NavaTim Aug 3, 2022

Choose a reason for hiding this comment

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

You may want to verify in the tests that these blocks set the context.

@mitchellhenke mitchellhenke merged commit 274c78c into main Aug 3, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/instrument-usps-ipp-request branch August 3, 2022 17:42
mitchellhenke pushed a commit that referenced this pull request Aug 3, 2022
changelog: Internal, Logging, Instrument HTTP requests for In-Person-Proofing
@solipet solipet mentioned this pull request Aug 9, 2022
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