middleware

package
v0.0.0-...-9edbc40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL