Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPLog ¶
func NewHTTPLog() fiber.Handler
NewHTTPLog is middleware fiber for http logging. Every you request, the middleware will execute and logging. Need custom a http log, because we need to put request_id and tracer_id in fields that can search easier when debug in staging/production. If you need a advance log like payload request, you can set a settings "DEBUG" in your config apps. Don't recommendation to use "DEBUG" in production, because payload will print in every request that success (if the http_status is failed, the payload keeps print a payload). Instead of that, use "INFO" in production. the request it will print but the payload is not print.
func NewLatency ¶
func NewLatency() func(ctx *fiber.Ctx) error
func NewRequestId ¶
func NewRequestId() fiber.Handler
func NewTelemetry ¶
func NewTelemetry() fiber.Handler
func SetHeaderTracerID ¶
func SetHeaderTracerID() fiber.Handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.