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

Adjust public contract of Logger Middlewares #6927

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

danicheg
Copy link
Member

Stream[F, Byte] is an implementation detail of a specific variant of Entity[F], so let's adjust the public contract of Logger Middlewares. Naming is the second hard thing in programming, so I'm fully open to debate on it.

@danicheg
Copy link
Member Author

@http4s/core hey team! I apologize for bothering you, I just want a little attention paid to this PR. It's not rocket science, but I really feel that exposing Stream[F, Byte] in public API when we have a dedicated Entity model smells a bit. I would be glad to hear your opinion on that.

Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me. Maybe it's better called logWithEntity instead of logWithBody?

@danicheg
Copy link
Member Author

Good call, will change it, thanks!

@danicheg
Copy link
Member Author

Sorry for pushing this so hard, but can we do another review iteration? There's anxiety, this can end up with a ton of conflicts due to the forthcoming #7122...

@danicheg
Copy link
Member Author

danicheg commented Jun 3, 2023

@armanbilge
Copy link
Member

😅 sorry Daniel 😬 #6645 preceded this PR by several months. I also hosed #7115 ...

@danicheg
Copy link
Member Author

danicheg commented Jun 3, 2023

Yeah, sorry for kvetching. It's the correct ordering. I merely tried to overtake you! 🙈

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.

None yet

3 participants