Skip to content

Commit

Permalink
ref(replay): Add session-replay-video as an exposed feature (#68941)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmanallen authored Apr 16, 2024
1 parent b570036 commit d57dd04
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion requirements-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ sentry-arroyo>=2.16.5
sentry-kafka-schemas>=0.1.68
sentry-ophio==0.2.7
sentry-redis-tools>=0.1.7
sentry-relay>=0.8.56
sentry-relay>=0.8.57
sentry-sdk==2.0.0rc3
snuba-sdk>=2.0.32
simplejson>=3.17.6
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev-frozen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ sentry-forked-djangorestframework-stubs==3.14.5.post1
sentry-kafka-schemas==0.1.68
sentry-ophio==0.2.7
sentry-redis-tools==0.1.7
sentry-relay==0.8.56
sentry-relay==0.8.57
sentry-sdk==2.0.0rc3
sentry-usage-accountant==0.0.10
simplejson==3.17.6
Expand Down
2 changes: 1 addition & 1 deletion requirements-frozen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sentry-arroyo==2.16.5
sentry-kafka-schemas==0.1.68
sentry-ophio==0.2.7
sentry-redis-tools==0.1.7
sentry-relay==0.8.56
sentry-relay==0.8.57
sentry-sdk==2.0.0rc3
sentry-usage-accountant==0.0.10
simplejson==3.17.6
Expand Down
33 changes: 18 additions & 15 deletions src/sentry/relay/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,30 @@

from .measurements import CUSTOM_MEASUREMENT_LIMIT

#: These features will be listed in the project config
#: These features will be listed in the project config.
#
# NOTE: These features must be sorted or the tests will fail!
EXPOSABLE_FEATURES = [
"projects:extract-transaction-from-segment-span",
"projects:profiling-ingest-unsampled-profiles",
"projects:span-metrics-extraction",
"projects:span-metrics-extraction-ga-modules",
"projects:span-metrics-extraction-all-modules",
"projects:span-metrics-extraction-resource",
"organizations:transaction-name-mark-scrubbed-as-sanitized",
"organizations:transaction-name-normalize",
"organizations:continuous-profiling",
"organizations:custom-metrics",
"organizations:device-class-synthesis",
"organizations:metric-meta",
"organizations:profiling",
"organizations:session-replay",
"organizations:session-replay-combined-envelope-items",
"organizations:user-feedback-ingest",
"organizations:session-replay-recording-scrubbing",
"organizations:device-class-synthesis",
"organizations:custom-metrics",
"organizations:metric-meta",
"organizations:session-replay-video",
"organizations:session-replay",
"organizations:standalone-span-ingestion",
"organizations:transaction-name-mark-scrubbed-as-sanitized",
"organizations:transaction-name-normalize",
"organizations:user-feedback-ingest",
"projects:discard-transaction",
"organizations:continuous-profiling",
"projects:extract-transaction-from-segment-span",
"projects:profiling-ingest-unsampled-profiles",
"projects:span-metrics-extraction-all-modules",
"projects:span-metrics-extraction-ga-modules",
"projects:span-metrics-extraction-resource",
"projects:span-metrics-extraction",
]

EXTRACT_METRICS_VERSION = 1
Expand Down
1 change: 1 addition & 0 deletions tests/sentry/api/endpoints/test_relay_globalconfig_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_global_config():
# Set options to Relay's non-default values to avoid Relay skipping deserialization
config["options"]["relay.cardinality-limiter.error-sample-rate"] = 1.0
config["options"]["relay.metric-stats.rollout-rate"] = 0.5
config["options"]["feedback.ingest-topic.rollout-rate"] = 0.5
config["options"]["profiling.profile_metrics.unsampled_profiles.enabled"] = True
config["options"]["profiling.profile_metrics.unsampled_profiles.platforms"] = ["fake-platform"]
config["options"]["profiling.profile_metrics.unsampled_profiles.sample_rate"] = 1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
created: '2024-04-15T14:23:08.500844+00:00'
creator: sentry
source: tests/sentry/relay/test_config.py
---
config:
Expand All @@ -21,6 +19,7 @@ config:
scrubDefaults: true
sensitiveFields: []
features:
- organizations:session-replay-video
- organizations:transaction-name-mark-scrubbed-as-sanitized
- organizations:transaction-name-normalize
filterSettings:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
created: '2023-09-15T07:41:53.684068Z'
creator: sentry
source: tests/sentry/relay/test_config.py
---
config:
Expand All @@ -12,6 +10,7 @@ config:
scrubDefaults: true
sensitiveFields: []
features:
- organizations:session-replay-video
- organizations:transaction-name-mark-scrubbed-as-sanitized
- organizations:transaction-name-normalize
piiConfig:
Expand Down

0 comments on commit d57dd04

Please sign in to comment.