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

Adservice returns error status code when feature flag is enabled #1484

Merged

Conversation

jack-berg
Copy link
Member

When the adServiceFailture feature flag is enabled, AdService returns a RESOURCE_EXHAUSTED = 8 grpc status code. This does not result in the span status being set to error according to the grpc semantic conventions: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/rpc/grpc.md

Updating to return UNAVAILABLE = 14 so that span status is reflected as error as the feature flag implies.

Side note: The docs site says that when this feature flag is enabled, an error is generated 1/10th of the time. I don't see any code that would limit this to only 10% of the time. Maybe I'm missing something.

@jack-berg jack-berg requested a review from a team March 25, 2024 21:22
@jack-berg
Copy link
Member Author

Side note: The docs site says that when this feature flag is enabled, an error is generated 1/10th of the time. I don't see any code that would limit this to only 10% of the time. Maybe I'm missing something.

I see. The 1/10th explicit randomness was removed in #1388 but restored via some flagd magic here: https://github.com/open-telemetry/opentelemetry-demo/pull/1388/files#diff-a30814cab829c01672e133c4738a4bff8fd5452a39238f0bbfb32529d9fde441

@julianocosta89 julianocosta89 merged commit 9ffee33 into open-telemetry:main Mar 26, 2024
27 checks passed
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.

3 participants