Add a couple more attributes to track key store errors, Fixes AB#3327441#2753
Conversation
|
✅ Work item link check complete. Description contains link AB#3327441 to an Azure Boards work item. |
1 similar comment
|
✅ Work item link check complete. Description contains link AB#3327441 to an Azure Boards work item. |
|
❌ Work item link check failed. Description contains AB#3327441 but the Bot could not link it to an Azure Boards work item. Click here to learn more. |
1 similar comment
|
❌ Work item link check failed. Description contains AB#3327441 but the Bot could not link it to an Azure Boards work item. Click here to learn more. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds additional telemetry attributes to track Android KeyStore operation errors more effectively. It introduces new attributes to capture exception messages and internal error codes from KeyStore exceptions, enhancing observability for debugging KeyStore-related issues.
- Added two new OpenTelemetry attributes:
keystore_exception_messageandkeystore_internal_error_code - Enhanced KeyStore error handling to extract and log KeyStore exception details
- Added helper methods to find KeyStore exceptions in the exception chain and extract internal error codes
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| AttributeName.java | Defines two new telemetry attributes for tracking KeyStore exception messages and internal error codes |
| AndroidKeyStoreUtil.java | Implements extraction of KeyStore exception details and adds them to telemetry attributes during unwrap operations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…il/AndroidKeyStoreUtil.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…il/AndroidKeyStoreUtil.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add a couple more attributes to track key store errors
AB#3327441