Add pqKeyAvailable tag to GetKeys metric

This commit is contained in:
Chris Eager 2025-03-03 14:56:13 -06:00 committed by Jon Chambers
parent d17b9322b7
commit 59d984e25d
1 changed files with 2 additions and 1 deletions

View File

@ -381,7 +381,8 @@ public class KeysController {
Metrics.counter(GET_KEYS_COUNTER_NAME, Tags.of(
UserAgentTagUtil.getPlatformTag(userAgent),
Tag.of(IDENTITY_TYPE_TAG_NAME, targetIdentifier.identityType().name()),
Tag.of("oneTimeEcKeyAvailable", String.valueOf(unsignedEcPreKey != null))))
Tag.of("oneTimeEcKeyAvailable", String.valueOf(unsignedEcPreKey != null)),
Tag.of("pqKeyAvailable", String.valueOf(pqPreKey != null))))
.increment();
if (signedEcPreKey != null || unsignedEcPreKey != null || pqPreKey != null) {