|
61 | 61 | import com.microsoft.identity.common.java.opentelemetry.OTelUtility; |
62 | 62 | import com.microsoft.identity.common.java.opentelemetry.SpanExtension; |
63 | 63 | import com.microsoft.identity.common.java.opentelemetry.SpanName; |
| 64 | +import com.microsoft.identity.common.java.opentelemetry.AttributeName; |
64 | 65 | import com.microsoft.identity.common.java.util.StringUtil; |
65 | 66 | import com.microsoft.identity.common.java.util.TaskCompletedCallbackWithError; |
66 | 67 | import com.nimbusds.jose.JOSEException; |
@@ -202,7 +203,7 @@ protected static final class CertificateProperties { |
202 | 203 |
|
203 | 204 | /** |
204 | 205 | * Properties embedded in the SignedHttpRequest. |
205 | | - * Roughly conforms to: https://tools.ietf.org/html/draft-ietf-oauth-signed-http-request-03 |
| 206 | + * Roughly conforms to: <a href="https://tools.ietf.org/html/draft-ietf-oauth-signed-http-request-03">...</a> |
206 | 207 | */ |
207 | 208 | private static final class SignedHttpRequestJwtClaims { |
208 | 209 |
|
@@ -590,7 +591,8 @@ public String encrypt(@NonNull final Cipher cipher, |
590 | 591 | @Override |
591 | 592 | public byte[] encrypt(@NonNull final Cipher cipher, @NonNull final byte[] plaintext) throws ClientException { |
592 | 593 | final String methodTag = TAG + ":encrypt"; |
593 | | - final Span span = OTelUtility.createSpan(SpanName.DevicePopEncrypt.name()); |
| 594 | + final Span span = OTelUtility.createSpan(SpanName.DevicePopCryptoOperation.name()); |
| 595 | + span.setAttribute(AttributeName.crypto_operation.name(), "encrypt"); |
594 | 596 | try (final Scope scope = SpanExtension.makeCurrentSpan(span)) { |
595 | 597 | // Load our key material |
596 | 598 | final KeyStore.PrivateKeyEntry privateKeyEntry = mKeyManager.getEntry(); |
@@ -654,7 +656,8 @@ public String decrypt(@NonNull final Cipher cipher, |
654 | 656 | @Override |
655 | 657 | public byte[] decrypt(@NonNull Cipher cipher, byte[] ciphertext) throws ClientException { |
656 | 658 | final String methodTag = TAG + ":decrypt"; |
657 | | - final Span span = OTelUtility.createSpan(SpanName.DevicePopDecrypt.name()); |
| 659 | + final Span span = OTelUtility.createSpan(SpanName.DevicePopCryptoOperation.name()); |
| 660 | + span.setAttribute(AttributeName.crypto_operation.name(), "decrypt"); |
658 | 661 | try (final Scope scope = SpanExtension.makeCurrentSpan(span)) { |
659 | 662 | // Load our key material |
660 | 663 | final KeyStore.PrivateKeyEntry privateKeyEntry = mKeyManager.getEntry(); |
|
0 commit comments