-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Demo environment generates errors by default #1628
Comments
Cart service also needs to be updated. We should do them both in the same PR that follows a format noted in this comment |
Actually I've tried the solution mentioned by @beeme1mr and everything broke.
It seems that when disabling the Feature Flag, it doesn't return |
Addresses open-telemetry#1628 and adds variability to errors for cart service
Hey @flands and @julianocosta89, I'll look into this tomorrow. When the flag is disabled, the SDK uses the default value defined in the code. The message @julianocosta89 posted is likely just an overly verbose log message. |
@beeme1mr I think some services do not default to false 😞 |
@julianocosta89 I looked into this a bit and there are a few takeaways:
I talked to @beeme1mr and he is looking into the verbose logging in the SDK. He agrees this situation isn't ideal and maybe shouldn't be logged the same way as other "real" failures. He's also going to look into why the flag file changes aren't being picked up by flagd in the demo setup. |
Thanks for taking a look at it @dyladan! |
@julianocosta89 I was able to track the flagd reload issue down to my specific setup. Apparently in colima (the container runtime I'm using) the WRITE event is not triggered when I write a mounted file. You can probably ignore it for now. |
I also have a quick update. We currently treat disabled flags like missing flags. That means we'll fall back to whatever is defined in the code, but we're also noisy about it because it's assumed you're accidentally using a flag. Obviously, that's not the ideal experience here, and we're working on a solution. It may take a few days to fully implement, but we're actively working on it and will provide an update ASAP. |
Bug Report
Which version of the demo you are using? 1.10.0
Symptom
If you start the demo environment from scratch, errors are reported for the
adservice
.What is the expected behavior?
Either:
What is the actual behavior?
The adservice generates errors by default yet the documentation seems to indicate you must enable scenarios to generate errors and other problems.
Reproduce
Provide the minimum required steps to result in the issue you're observing.
We will close this issue if:
Additional Context
Logs messages for
adservice
will show:ad-service | 2024-06-23 15:11:51 - oteldemo.AdService - GetAds Failed with status Status{code=UNAVAILABLE, description=null, cause=null} trace_id=d963f87608e1ab611dee31ef9ac29860 span_id=84ce83545d6852bb trace_flags=01
src/flagd/demo.flagd.json
shows:The problem is
off
which should be set to100
by defaultThe text was updated successfully, but these errors were encountered: