Documentation ¶
Overview ¶
Package ppfiber instruments the gofiber/fiber/v2 package (https://github.com/gofiber/fiber).
This package instruments inbound requests handled by a fiber instance. Register the Middleware as the middleware of the router to trace all handlers:
app := fiber.New() app.Use(ppfiber.Middleware())
Use WrapHandler to select the handlers you want to track:
app.Get("/hello", ppfiber.WrapHandler(hello))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() func(c *fiber.Ctx) error
Middleware returns middleware that will trace incoming requests.
func WrapHandler ¶
func WrapHandler(handler fiber.Handler) fiber.Handler
WrapHandler wraps the given fiber handler and adds the pinpoint.Tracer to the user context. By using the pinpoint.FromContext function, this tracer can be obtained.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.