-
Notifications
You must be signed in to change notification settings - Fork 92
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
ref(processor): Remove managed envelope from the state #4398
Conversation
Is there any "process" function that does not require the managed envelope? If all of them require it, I don't think taking it out makes sense even for an intermediary step. |
event_fully_normalized: EventFullyNormalized, | ||
config: &Config, | ||
) -> Result<Option<(EventMetricsExtracted, SpansExtracted)>, ProcessingError> { | ||
let envelope = &mut state.envelope_mut(); | ||
let envelope = &mut managed_envelope.envelope_mut(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this &mut
is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Good catch
This PR remove the managed envelope from the state.
#skip-changelog