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

Logging Optimization and Restructuring #1585

Merged
merged 15 commits into from
Dec 30, 2024
Merged

Logging Optimization and Restructuring #1585

merged 15 commits into from
Dec 30, 2024

Conversation

Apollon77
Copy link
Collaborator

This PR changes the logging and combines some loglines into one. This mainly means that we have more information in the exchange message logs.

It also adds one Shutdown optimization already because of code-overlappings: It allows to disable Exchange MRP logic which means that the message is sent but the ack is not awaited and returned directly. With this we can use a shorter timeout when waiting for the answer in case of node shutdowns where last subscription information are pushed before going offline.

Rest see commit comments

"Keylike" means that the key is suppressed and the value is rendered like a key.
This gets an object of values and the keys of all "truthy" values will be added as space delimited list. "keylikeFlags" directly renders it with a keylike presentation.
This commits adds a "logContext" to the Exchange#send code flow and fills it with values. Ideally Messagetypes and such are determined automatically from the protocolId and opCode
This commit streamlines logging in the two Messengers and simplifies it.
Allows to disable MRP logic wehn sending exchange data - this is used when pushing out subscription data on shutdown where we do not want to have a full MRP retransmission cycle, so we just push the message without waiting for ack and just wait for Success for a shorter time to not block shutdown. In this case oushing submission infos is "by chance" anyway, so that's ok
packages/general/src/log/Diagnostic.ts Outdated Show resolved Hide resolved
packages/general/src/log/Diagnostic.ts Outdated Show resolved Hide resolved
packages/general/src/log/Diagnostic.ts Outdated Show resolved Hide resolved
@mergify mergify bot merged commit 06876c6 into main Dec 30, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants