diff --git a/CHANGELOG.md b/CHANGELOG.md index 3744cf44d3..ecf706fff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,7 @@ - Add looser type requirements for the user.id field. ([#1443](https://github.com/getsentry/relay/pull/1443)) - Add InvalidReplayEvent outcome. ([#1455](https://github.com/getsentry/relay/pull/1455)) - Add replay and replay-recording rate limiter. ([#1456](https://github.com/getsentry/relay/pull/1456)) -- Support profiles tagged for many transactions. ([#1444](https://github.com/getsentry/relay/pull/1444)) -- Fix logic reversal typo related to profiling. ([#1463](https://github.com/getsentry/relay/pull/1463)) +- Support profiles tagged for many transactions. ([#1444](https://github.com/getsentry/relay/pull/1444)), ([#1463](https://github.com/getsentry/relay/pull/1463)), ([#1464](https://github.com/getsentry/relay/pull/1464)) **Features**: diff --git a/relay-server/src/actors/processor.rs b/relay-server/src/actors/processor.rs index 3d3977aebb..cf1f9807c3 100644 --- a/relay-server/src/actors/processor.rs +++ b/relay-server/src/actors/processor.rs @@ -850,6 +850,10 @@ impl EnvelopeProcessor { /// Remove profiles if the feature flag is not enabled fn process_profiles(&self, state: &mut ProcessEnvelopeState) { + if !self.config.processing_enabled() { + return; + } + let profiling_enabled = state.project_state.has_feature(Feature::Profiling); let envelope = &mut state.envelope; let context = &state.envelope_context; @@ -859,10 +863,6 @@ impl EnvelopeProcessor { return; } - if !self.config.processing_enabled() { - return; - } - match relay_profiling::expand_profile(&item.payload()[..]) { Ok(payloads) => { for payload in payloads.iter() { @@ -872,7 +872,6 @@ impl EnvelopeProcessor { } } Err(err) => { - println!("{:#?}", err); context.track_outcome( outcome_from_profile_error(err), DataCategory::Profile,