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

server: add transport protocol details to the logger trait #886

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Sep 28, 2022

Close #882

In addition I added that http also calls Logger::on_connect and Logger::on_disconnect, these could also be fetched via middleware but someone wants to have a metrics for that let's provide it for a consistent API.

companion: https://github.com/paritytech/substrate/compare/na-jsonrpsee-v0.16-comp?expand=1

@niklasad1 niklasad1 requested a review from a team as a code owner September 28, 2022 15:30
@niklasad1 niklasad1 changed the title server: add protocol details to logger trait server: add transport protocol details to the logger trait Sep 28, 2022
Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

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

Looks solid!

@niklasad1 niklasad1 merged commit 9b1ffcd into master Oct 4, 2022
@niklasad1 niklasad1 deleted the na-logger-trait-with-label branch October 4, 2022 06:09
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.

[server]: metric/logger not able to distinguish between WS and HTTP calls
4 participants