The current pipeline for Action API statistics is MediaWiki -> Monolog -> Kafka -> Hadoop. This has the disadvantage that reponses that come from the Varnish cache are ignored. We can work around this by copying all requests from the [[https://wikitech.wikimedia.org/wiki/Analytics/Data/Webrequest|webrequest]] table where the endpoint is api.php and the request is cached (cache_status is hit).
To be able to provide error information, we would need T116658: Add Application errors for MediaWiki API to x-analytics .