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

allow for visibility on the session serialization #162

Open
jorgheymans opened this issue Nov 15, 2024 · 0 comments
Open

allow for visibility on the session serialization #162

jorgheymans opened this issue Nov 15, 2024 · 0 comments

Comments

@jorgheymans
Copy link

For applications with complex screens, it's advisable to keep an eye on the session size and what ends up in the session. Currently, a developer has no visibility on this. If we could hook up a micrometer meter of some sort to the serialization mechanism, then we can make the results of the session serde visible in a graph and action on it. The size of the serialized object stream is useful to know, the number of objects as well. kubernetes-kit should not have a dependency on micrometer, but perhaps the SessionSerializationCallback could be extended with a methods like onSerializationSuccess(long numberOfBytes, long numberOfObjects) ? Can this be done without enable serde debug, i.e. on a production instance?

Another type of visibility is knowing what is contained in the session. Is it feasible to have a debug mechanism that would allow a developer to dump the complete serialized object graph in text format to a file, and verify if there are not any objects there that should not be. It's very easy to make such mistakes during screen development.

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

No branches or pull requests

1 participant