Skip to content

Commit f526b0f

Browse files
committed
Changelog
1 parent 2cabc64 commit f526b0f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.changesets/fix_simon_jwt_metrics.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Fix JWT metrics discrepancy ([PR #7258](https://github.com/apollographql/router/pull/7258))
2+
3+
This fixes the `apollo.router.operations.authentication.jwt` counter metric to behave [as documented](https://www.apollographql.com/docs/graphos/routing/security/jwt#observability): emitted for every request that uses JWT, with the `authentication.jwt.failed` attribute set to true or false for failed or successful authentication.
4+
5+
Previously, it was only used for failed authentication.
6+
7+
The attribute-less and accidentally-differently-named `apollo.router.operations.jwt` counter was and is only emitted for successful authentication, but is deprecated now.
8+
9+
By [@SimonSapin](https://github.com/SimonSapin) in https://github.com/apollographql/router/pull/7258

0 commit comments

Comments
 (0)