Home

Awesome

RequestID (This is a community driven project)

Request ID middleware for Hertz framework, inspired by requestid. This project would not have been possible without the support from the CloudWeGo community and previous work done by the gin community.

Install

go get github.com/hertz-contrib/requestid

Usage

usagedescription
defaultThis is using requestid by default
custom keyHow to use requestid for custom key
custom generatorHow to use requestid for custom generator
custom handlerHow to use requestid for custom handler
get requestidHow to get requestid
log with hertzlogrusHow to log requestid with hertzlogrus

License

This project is under the Apache License 2.0. See the LICENSE file for the full license text.