go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.43k stars 4.01k forks source link

feat(middleware/metrics): make middleware histograms simply #3385

Closed Ccheers closed 1 month ago

Ccheers commented 4 months ago

…eed to call DefaultSecondsHistogram without registering DefaultSecondsHistogramView

Description (what this PR does / why we need it):

support middleware histograms, you only need to call DefaultSecondsHistogram without registering DefaultSecondsHistogramView

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers: