contrib/gofiber/fiber.v2

Those integration are enabled by having the following import in the project’s orchestrion.tool.go file:

import (
	_ "github.com/DataDog/orchestrion"

	_ "gopkg.in/DataDog/dd-trace-go.v1/contrib/gofiber/fiber.v2" // integration
	//...
)

An Express inspired web framework built on Fasthttp, the fastest HTTP engine for Go.

New

Join Point
Call to fiber.New
Advice
Replace the expression using the template:
// Using the following synthetic imports:
import (
	fiber "github.com/gofiber/fiber/v2"
	fibertrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/gofiber/fiber.v2"
)
func() *fiber.App {
	app := {{ . }}
	app.Use(fibertrace.Middleware())
	return app
}()