Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added bulk metrics support under /api/client/metrics/bulk path (#…
…5779) This adds a bulk endpoint under `/api/client/metrics`. Accessible under `/api/client/metrics/bulk`. This allows us to piggyback on the need for an API user with access. This PR mostly copies the behaviour from our `/edge/metrics` endpoint, but it filters metrics to only include the environment that the token has access to. So a client token that has access to the `production` will not be allowed to report metrics for the `development` environment. More importantly, a `development` token will not be allowed to post metrics for the `production` environment.
- Loading branch information
Christopher Kolstad
committed
Jan 10, 2024
1 parent
dcf539f
commit e7642c0
Showing
3 changed files
with
221 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters