Skip to content

Commit

Permalink
flag(ourlogs): Add product feature flag (frontend/backend) (#81930)
Browse files Browse the repository at this point in the history
The classic start to every project.
  • Loading branch information
k-fish authored Jan 16, 2025
1 parent d7e5d5d commit 0b50991
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/sentry/features/temporary.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ def register_temporary_features(manager: FeatureManager):
manager.add("organizations:eap-alerts-ui-uses-rpc", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Test flag for flagpole region checking
manager.add("organizations:validate-region-test-flag", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Enable our logs product (known internally as ourlogs) in UI and backend
manager.add("organizations:ourlogs-enabled", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Enable our logs product to be ingested via Relay.
manager.add("organizations:ourlogs-ingestion", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)

# NOTE: Don't add features down here! Add them to their specific group and sort
# them alphabetically! The order features are registered is not important.
Expand Down
3 changes: 1 addition & 2 deletions src/sentry/relay/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
from .measurements import CUSTOM_MEASUREMENT_LIMIT

# These features will be listed in the project config.
#
# NOTE: These features must be sorted or the tests will fail!
EXPOSABLE_FEATURES = [
"organizations:continuous-profiling",
"organizations:continuous-profiling-beta",
Expand All @@ -69,6 +67,7 @@
"organizations:indexed-spans-extraction",
"organizations:ingest-spans-in-eap",
"projects:relay-otel-endpoint",
"organizations:ourlogs-ingestion",
]

EXTRACT_METRICS_VERSION = 1
Expand Down

0 comments on commit 0b50991

Please sign in to comment.