Tracking request authentication type for order list loading #16112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Part of WOOMOB-1125
Description
This PR adds support to track request authentication type for analytics purposes. The type is only sent in
orders_list_loadedevent as this is the most used feature in the app. We'll use this property to analyze the performance of the order list request and compare the result between Jetpack-proxied and direct requests similar to this post: pe5sF9-4me-p2.Changes:
AlamofireNetworkto determine the current request authentication type.AuthenticatedStateandStoresManagerto make it possible to check for authentication type.request_typetoorder_list_loadedevent.Testing steps
TC1: Application password authenticated
order_list_loadedis tracked withrequest_type: app_passwords.TC2: WPCom authenticated.
order_list_loadedis tracked withapp_passwords_with_jetpack.order_list_loadedis tracked withjetpack_tunnel.Testing information
Tested the above cases with simulator iPhone 16 iOS 18.2
Screenshots
N/A
RELEASE-NOTES.txtif necessary.