-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a metric tracking authorization usage (#3660)
Co-authored-by: Bryn Cooke <[email protected]>
- Loading branch information
Showing
3 changed files
with
163 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### add a metric tracking authorization usage ([PR #3660](https://github.com/apollographql/router/pull/3660)) | ||
|
||
The new metrics, for use in Router Analytics, is a counter called `apollo.router.operations.authorization` | ||
and contains the following boolean attributes: | ||
- filtered: some fields were filtered from the query | ||
- authenticated: the query uses fields or types tagged with the `@authenticated` directive | ||
- requires_scopes: the query uses fields or types tagged with the `@requiresScopes` directive | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3660 |
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