3scale / apisonator

Red Hat 3scale API Management Apisonator backend
https://3scale.net
Apache License 2.0
35 stars 27 forks source link

Fix internal api metrics #244

Closed davidor closed 3 years ago

davidor commented 3 years ago

Fixes THREESCALE-6453

Some metrics of the internal API were not being counted correctly. The reason is that the array of regexes that we use to determine the counter to update was not sorted properly.

This issue was not caught by our test suite, so I added tests for all the requests types.