requestid
obs-opentelemetry
requestid | obs-opentelemetry | |
---|---|---|
1 | 2 | |
172 | 23 | |
1.7% | - | |
6.3 | 7.4 | |
13 days ago | about 2 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
requestid
-
HTTP request ID association with logs
The requestid middleware for Hertz is based on the Gin framework's requestid and adapted to Hertz. Its main purpose is to add rquestid to the response and context of a request to uniquely identify a request.
obs-opentelemetry
-
Hertz how to use Opentelemetry for beginners
The Hertz provides the Opentelemetry extension obs-opentelemetry to facilitate the integration of Metric, Tracing and Logger, in the next article we will use Gorm's Open-Telemetry extension together with Hertz's Open-Telemetry extension to develop A project.
-
HTTP request ID association with logs
In this way we associate the log of an HTTP request with requstid. In fact Hertz provides more powerful capabilities, which we will cover in the next article. You can check out obs-opentelemetry in advance if you are interested.
What are some alternatives?
requestid - requestid middleware for Hertz
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
souin - An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache
hertz - Go HTTP framework with high-performance and strong-extensibility for building micro-services.
gin-swagger - gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
logger - A collection of Hertz logger extension