Skip to content

Commit 1551301

Browse files
authored
ref(processing/store): remove references to feedback attachments option (#3617)
Follow up after getsentry/team-replay#393. We've set the option to true for all regions and tested that it works, so this is a dead code path we can remove Relates to getsentry/sentry-javascript#11428 #skip-changelog
1 parent 75fc8de commit 1551301

File tree

3 files changed

+4
-37
lines changed

3 files changed

+4
-37
lines changed

relay-dynamic-config/src/global.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,6 @@ pub struct Options {
198198
)]
199199
pub feedback_ingest_topic_rollout_rate: f32,
200200

201-
/// Flag for handling feedback and attachments in the same envelope. This is for the SDK team to send less requests
202-
/// for the user feedback screenshots feature. Prior to this change, feedback sent w/attachments would be produced
203-
/// to the attachments topic, rather than its own topic. The items are now split up accordingly.
204-
///
205-
/// This option is used as a temporary FF/kill-switch to toggle back to the old code path in relay's StoreService.
206-
/// This is for testing convenience and will be removed after user feedback's GA release.
207-
#[serde(
208-
rename = "feedback.ingest-inline-attachments",
209-
deserialize_with = "default_on_error",
210-
skip_serializing_if = "is_default"
211-
)]
212-
pub feedback_ingest_same_envelope_attachments: bool,
213-
214201
/// Overall sampling of span extraction.
215202
///
216203
/// This number represents the fraction of transactions for which

relay-server/src/services/store.rs

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,10 @@ impl StoreService {
190190
let retention = envelope.retention();
191191
let event_id = envelope.event_id();
192192

193-
let feedback_ingest_same_envelope_attachments = self
194-
.global_config
195-
.current()
196-
.options
197-
.feedback_ingest_same_envelope_attachments;
198-
199193
let event_item = envelope.as_mut().take_item_by(|item| {
200194
matches!(
201-
(item.ty(), feedback_ingest_same_envelope_attachments),
202-
(ItemType::Event, _)
203-
| (ItemType::Transaction, _)
204-
| (ItemType::Security, _)
205-
| (ItemType::UserReportV2, false)
195+
item.ty(),
196+
ItemType::Event | ItemType::Transaction | ItemType::Security
206197
)
207198
});
208199
let client = envelope.meta().client();
@@ -251,7 +242,7 @@ impl StoreService {
251242
item,
252243
)?;
253244
}
254-
ItemType::UserReportV2 if feedback_ingest_same_envelope_attachments => {
245+
ItemType::UserReportV2 => {
255246
let remote_addr = envelope.meta().client_addr().map(|addr| addr.to_string());
256247
self.produce_user_report_v2(
257248
event_id.ok_or(StoreError::NoEventId)?,

tests/integration/test_feedback.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,17 @@ def assert_expected_feedback(parsed_feedback, sent_feedback):
8888
}
8989

9090

91-
@pytest.mark.parametrize("use_feedback_ingest_v2", (False, True))
9291
@pytest.mark.parametrize("use_feedback_topic", (False, True))
9392
def test_feedback_event_with_processing(
9493
mini_sentry,
9594
relay_with_processing,
9695
events_consumer,
9796
feedback_consumer,
9897
use_feedback_topic,
99-
use_feedback_ingest_v2,
10098
):
10199
mini_sentry.add_basic_project_config(
102100
42, extra={"config": {"features": ["organizations:user-feedback-ingest"]}}
103101
)
104-
mini_sentry.set_global_config_option(
105-
"feedback.ingest-inline-attachments", use_feedback_ingest_v2
106-
)
107102

108103
if use_feedback_topic:
109104
mini_sentry.set_global_config_option("feedback.ingest-topic.rollout-rate", 1.0)
@@ -129,19 +124,15 @@ def test_feedback_event_with_processing(
129124
other_consumer.assert_empty()
130125

131126

132-
@pytest.mark.parametrize("use_feedback_ingest_v2", (False, True))
133127
@pytest.mark.parametrize("use_feedback_topic", (False, True))
134128
def test_feedback_events_without_processing(
135-
mini_sentry, relay_chain, use_feedback_topic, use_feedback_ingest_v2
129+
mini_sentry, relay_chain, use_feedback_topic
136130
):
137131
project_id = 42
138132
mini_sentry.add_basic_project_config(
139133
project_id,
140134
extra={"config": {"features": ["organizations:user-feedback-ingest"]}},
141135
)
142-
mini_sentry.set_global_config_option(
143-
"feedback.ingest-inline-attachments", use_feedback_ingest_v2
144-
)
145136
mini_sentry.set_global_config_option(
146137
"feedback.ingest-topic.rollout-rate", 1.0 if use_feedback_topic else 0.0
147138
)
@@ -169,8 +160,6 @@ def test_feedback_with_attachment_in_same_envelope(
169160
mini_sentry.add_basic_project_config(
170161
42, extra={"config": {"features": ["organizations:user-feedback-ingest"]}}
171162
)
172-
# Test will only pass with this option set
173-
mini_sentry.set_global_config_option("feedback.ingest-inline-attachments", True)
174163

175164
if use_feedback_topic:
176165
mini_sentry.set_global_config_option("feedback.ingest-topic.rollout-rate", 1.0)

0 commit comments

Comments
 (0)