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

🚀 cost-insights: Better error handling for getCatalogEntityDailyCost method #2817

Open
2 tasks done
Chris-Lee-Ca opened this issue Feb 5, 2025 · 2 comments
Open
2 tasks done
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Chris-Lee-Ca
Copy link

Workspace

cost-insights

🔖 Feature description

Our company is currently implementing the Cost Insights plugin using the AWS Labs solution: AWS Cost Insights Plugin. This solution relies on annotations in components to filter cost data from AWS.

It is believed that using annotations is also a methodology for most solutions, but we have encountered an issue:

  • If a component is missing the required annotation (or is not supposed to have one), the current implementation only returns a generic 500 Internal Server Error.
  • This makes troubleshooting difficult, as there is no clear indication of what went wrong.

This problem cannot be resolved at the implementation layer, it requires changes to the cost-insights plugin. It would be beneficial if the plugin could provide more meaningful error messages to the user. This enhancement would improve usability and make troubleshooting easier.

🎤 Context

Instead of a 500 error, the plugin should support to return a descriptive error message explaining that any error have occured in the backend.

In my case, for the missing annotation, the most ideal outcome would be to display an instruction similar to what TechDocs does:
Image

✌️ Possible Implementation

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

@Chris-Lee-Ca Chris-Lee-Ca added the enhancement New feature or request label Feb 5, 2025
@Chris-Lee-Ca
Copy link
Author

Chris-Lee-Ca commented Feb 5, 2025

The original issue I raised in the AWS Labs repo: awslabs/backstage-plugins-for-aws#325

@awanlin awanlin added the help wanted Extra attention is needed label Feb 5, 2025
@awanlin
Copy link
Contributor

awanlin commented Feb 5, 2025

Thanks @Chris-Lee-Ca, added the help wanted tag and happy to see contributions for this! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants