Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telemetry(amazonq): Update /dev error classification logic #5469

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

neilk-aws
Copy link
Contributor

Today, telemetry emitted from the feature development is classified as error, fault, or LLM-based failure across various parts of the code base. This makes it difficult to know all the error types that exist and how to classify them appropriately when emitting metrics.

The solution here allows different exceptions to raise from different parts of the code base and uses inheritance to model each error as a client error, service error, or LLM-based error. When emitting telemetry, we now only need to check whether the error received extends from one of these 3 to know how to classify the telemetry.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@neilk-aws neilk-aws requested review from a team as code owners March 12, 2025 05:31
@neilk-aws neilk-aws changed the title telemetry(amazonq): Update /dev error classification logic #6772 telemetry(amazonq): Update /dev error classification logic Mar 12, 2025
@neilk-aws neilk-aws closed this Mar 12, 2025
@neilk-aws neilk-aws reopened this Mar 12, 2025
@neilk-aws neilk-aws changed the title telemetry(amazonq): Update /dev error classification logic telemetry(amazonq): Update /dev error classification logic Mar 12, 2025
@neilk-aws neilk-aws closed this Mar 12, 2025
@neilk-aws neilk-aws reopened this Mar 12, 2025
FeatureDevException(message("amazonqFeatureDev.exception.conversation_not_found"), operation, desc, cause)
ServiceException(message("amazonqFeatureDev.exception.conversation_not_found"), operation, desc, cause)

class ApiClientE

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "ApiClientE" is never used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant