fix: Enhance error logs in store's Watch func#1865
fix: Enhance error logs in store's Watch func#1865toddbaert merged 7 commits intoopen-feature:mainfrom
Conversation
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
✅ Deploy Preview for polite-licorice-3db33c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary of ChangesHello @leakonvalinka, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving the diagnostic capabilities of the store's Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request enhances error logging in the Watch function by including selector information. The change is a good improvement for debuggability. I've added one suggestion to make the selector string generation more robust by handling selectors with multiple constraints, which will prevent potentially misleading log messages.
aepfli
left a comment
There was a problem hiding this comment.
The changes are simple and nice, some questions and suggestions from my side added. especially i think we should extract the generation of the string into an own method.
|
I think the reason this came up is because some client's like us internally use stream deadlines. Stream deadlines are sent from the client, but enforced both on the client and on the server. This error will fire when the context deadline is exceeded, which is perfectly expected in our case. You can test this by connecting a client with a 10s stream deadline to flagd, and you will see this basically every 10s, I think. We may want to log this as debug if the error is a deadline exceeded. EDIT: You can do this with 10s later: |
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
|
If we go from log level error to debug, it might take users longer to notice the logs. If this is a transitive error then that's fine I think, but if it requires user/client action it would be good to have some error log. I'm not 100% grasping what the error is about so if that doesn't make sense forget about it :D |
Basically, if the error is one of these types, it's not an error: Other errors are really unexpected, but these are not (not every ergonomic, I know). |
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: lea konvalinka <lea.konvalinka@dynatrace.com> Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
bd6252d to
a1d5eea
Compare
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
Signed-off-by: Konvalinka <lea.konvalinka@dynatrace.com>
|
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.13.3</summary> ## [0.13.3](flagd/v0.13.2...flagd/v0.13.3) (2026-02-09) ### 🐛 Bug Fixes * case sensitivity in header context mapping ([#1855](#1855)) ([be5c94f](be5c94f)) </details> <details><summary>core: 0.13.3</summary> ## [0.13.3](core/v0.13.2...core/v0.13.3) (2026-02-09) ### 🐛 Bug Fixes * correct parameter order in histogram bucket configuration⚠️ ([#1859](#1859)) ([335af32](335af32)) * Enhance error logs in store's Watch func ([#1865](#1865)) ([a58a707](a58a707)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>



This PR
Related Issues
#1863