Skip to content
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

Merged
merged 17 commits into from
Dec 17, 2024

Conversation

iambriccardo
Copy link
Member

@iambriccardo iambriccardo commented Dec 17, 2024

This PR remove the managed envelope from the state.

#skip-changelog

@iambriccardo iambriccardo changed the title riccardo/ref/remove state field 8 ref(processor): Remove managed envelope from the state Dec 17, 2024
@iambriccardo iambriccardo marked this pull request as ready for review December 17, 2024 13:43
@iambriccardo iambriccardo requested a review from a team as a code owner December 17, 2024 13:43
@iambriccardo iambriccardo requested a review from jjbayer December 17, 2024 13:48
@jjbayer
Copy link
Member

jjbayer commented Dec 17, 2024

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();
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good catch

@iambriccardo iambriccardo merged commit 8c34828 into master Dec 17, 2024
23 checks passed
@iambriccardo iambriccardo deleted the riccardo/ref/remove-state-field-8 branch December 17, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants