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

Update feedback enabled endpoint #332

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Conversation

eyurtsev
Copy link
Collaborator

Update feedback endabled endpoint behavior

This endpoint is private since it will be deprecated in the future.

"""
if not self._enable_feedback_endpoint or not tracing_is_enabled():
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swap order of conditional for short circuiting -- self._enable_feedback_endpoint is a local attribute, with tracing_is_enabled() could include some hidden cost (at the moment there's no difference)

@eyurtsev eyurtsev merged commit aefd94a into main Dec 15, 2023
10 checks passed
@eyurtsev eyurtsev deleted the eugene/update_feedback_enabled branch December 15, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants