astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
238 stars 46 forks source link

Expand API usage metrics #910

Closed rbino closed 6 months ago

rbino commented 6 months ago

Expose API request count and body size (both for request and response), deriving them from cowboy telemetry metrics. Remove the previous Plug-based solution for request count.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 20.51282% with 31 lines in your changes are missing coverage. Please review.

Project coverage is 68.08%. Comparing base (4648fb2) to head (8902471).

Files Patch % Lines
...b/astarte_appengine_api_web/telemetry/api_usage.ex 0.00% 8 Missing :warning:
...lib/astarte_pairing_api_web/telemetry/api_usage.ex 0.00% 8 Missing :warning:
...te_realm_management_api_web/telemetry/api_usage.ex 0.00% 8 Missing :warning:
...starte_housekeeping_api_web/telemetry/api_usage.ex 0.00% 7 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #910 +/- ## ========================================== - Coverage 68.35% 68.08% -0.28% ========================================== Files 274 274 Lines 7069 7093 +24 ========================================== - Hits 4832 4829 -3 - Misses 2237 2264 +27 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.