Skip to content

ref(server): Split EnvelopeManager file into smaller parts#1388

Merged
jan-auer merged 5 commits intomasterfrom
ref/split-envelopes-actor
Aug 8, 2022
Merged

ref(server): Split EnvelopeManager file into smaller parts#1388
jan-auer merged 5 commits intomasterfrom
ref/split-envelopes-actor

Conversation

@jan-auer
Copy link
Copy Markdown
Member

@jan-auer jan-auer commented Aug 8, 2022

The file containing EnvelopeManager defined two other major components: First,
the EnvelopeProcessor which made up most of the file's contents and contains
all synchronous processing code calling out to the normalization libraries.
Second, the EnvelopeContext which comprises relevant information to carry
along with Envelopes.

This PR separates all of these components into their own files so that changes
to the EnvelopeManager's internals can be reviewed better. The precise changes
are:

  • Move EnvelopeProcessor along with all its messages into a dedicated file
  • Move EnvelopeContext into utils::with_outcome, which is what it is
    intended for.
  • Clean up duplication in EncodeEnvelope. This processing function can
    subsequently be removed.

There is no change to control flow or behavior of any involved components.

#skip-changelog

@jan-auer jan-auer requested a review from a team August 8, 2022 12:18
* master:
  ref(metrics): Remove `light_normalize` in favor of `light_normalize_event` (#1385)
@jan-auer jan-auer enabled auto-merge (squash) August 8, 2022 12:56
@jan-auer jan-auer merged commit 0d74eb9 into master Aug 8, 2022
@jan-auer jan-auer deleted the ref/split-envelopes-actor branch August 8, 2022 13:26
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.

2 participants