Skip to content

Add a couple more attributes to track key store errors, Fixes AB#3327441#2753

Merged
fadidurah merged 17 commits into
devfrom
fadi/ks-telem
Sep 12, 2025
Merged

Add a couple more attributes to track key store errors, Fixes AB#3327441#2753
fadidurah merged 17 commits into
devfrom
fadi/ks-telem

Conversation

@fadidurah
Copy link
Copy Markdown
Contributor

@fadidurah fadidurah commented Aug 30, 2025

Add a couple more attributes to track key store errors

AB#3327441

Copilot AI review requested due to automatic review settings August 30, 2025 00:12
@fadidurah fadidurah added the No-Changelog This Pull-Request has no associated changelog entry. label Aug 30, 2025
@fadidurah fadidurah requested a review from a team as a code owner August 30, 2025 00:12
@github-actions
Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3327441 to an Azure Boards work item.

1 similar comment
@github-actions
Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3327441 to an Azure Boards work item.

@github-actions
Copy link
Copy Markdown

❌ 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
@github-actions
Copy link
Copy Markdown

❌ 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_message and keystore_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.

@github-actions github-actions Bot changed the title Add a couple more attributes to track key store errors Add a couple more attributes to track key store errors, Fixes AB#3327441 Aug 30, 2025
fadidurah and others added 3 commits September 2, 2025 11:11
…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>
Copy link
Copy Markdown
Contributor

@mohitc1 mohitc1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a suggestion

@fadidurah fadidurah merged commit bb4d8e9 into dev Sep 12, 2025
24 of 25 checks passed
@fadidurah fadidurah deleted the fadi/ks-telem branch October 17, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants