kafka/generator/src
Ismael Juma 919b585da0
KAFKA-15874: Add metric and request log attribute for deprecated request api versions (KIP-896) (#15032)
Breakdown of this PR:
* Extend the generator to support deprecated api versions
* Set deprecated api versions via the request json files
* Expose the information via metrics and the request log

The relevant section of the KIP:

> * Introduce metric `kafka.network:type=RequestMetrics,name=DeprecatedRequestsPerSec,request=(api-name),version=(api-version),clientSoftwareName=(client-software-name),clientSoftwareVersion=(client-software-version)`
> * Add boolean field `requestApiVersionDeprecated`  to the request
header section of the request log (alongside `requestApiKey` ,
`requestApiVersion`, `requestApiKeyName` , etc.).

Unit tests were added to verify the new generator functionality,
the new metric and the new request log attribute.

Reviewers: Jason Gustafson <jason@confluent.io>
2023-12-20 05:13:36 -08:00
..
main/java/org/apache/kafka/message KAFKA-15874: Add metric and request log attribute for deprecated request api versions (KIP-896) (#15032) 2023-12-20 05:13:36 -08:00
test/java/org/apache/kafka/message KAFKA-15874: Add metric and request log attribute for deprecated request api versions (KIP-896) (#15032) 2023-12-20 05:13:36 -08:00