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

Add feature flag tracking #3503

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Add feature flag tracking #3503

wants to merge 3 commits into from

Conversation

cmanallen
Copy link
Member

@cmanallen cmanallen commented Sep 5, 2024

Related RFC: getsentry/rfcs#140

TODO:

  • Write a better PR description.
  • Use an LRU cache instead of FIFO queue.
  • Find the best place to append the flags to the error event.

Related to:

Copy link

codecov bot commented Sep 5, 2024

❌ 7422 Tests Failed:

Tests completed Failed Passed Skipped
18964 7422 11542 2483
View the top 3 failed tests by shortest run time
tests.integrations.logging.test_logging test_custom_log_level_names
Stack Traces | 0s run time
No failure message available
tests.integrations.logging.test_logging test_logging_works_with_many_loggers[logger0]
Stack Traces | 0s run time
No failure message available
tests.test_scrubber test_breadcrumb_extra_scrubbing
Stack Traces | 0s run time
No failure message available

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

@@ -482,6 +482,9 @@ def _prepare_event(
"event_processor", data_category="span", quantity=spans_delta
)

# TODO: Where should I put this?
event["contexts"]["flags"] = scope._flag_manager.serialize()
Copy link
Member Author

Choose a reason for hiding this comment

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

@antonpirker Could you help me fill in the gaps here? Where should this live? Also are scopes nested? Would it be possible to merge the flags from a global scope and a thread scope here?

@cmanallen cmanallen self-assigned this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant