Description
The WikiLambda extension (a component of Wikifunctions) is using the Metrics Platform PHP library to track the usage of our wikilambda_function_call (private) API endpoint. We include
allOf: $ref: /fragment/http/client_ip/1.0.0#
in the schema so we can get a rough-granularity breakdown of geolocations from which the API is being called. The http.client_ip attribute always gets assigned the value 127.0.0.1.
This is also true of our wikifunctions_run (public) API endpoint.
Notes: each of the endpoint pages linked above includes clickable example calls to the API. This patch declared the stream configuration for the metrics events. Currently there are several thousand events in the corresponding Data Lake table, and every one has 127.0.0.1 for http.client_ip. All other attributes have appropriate values.
Desired behavior/Acceptance criteria
- The client_ip attribute should be assigned a value that appropriately indicates the address of the system from which the API has been called.