README ¶ Usage In main(): ctx := context.Background() app, shutdown := NewLogrusAndTraceAwareFiberApp(ctx, "mailgun-api") [...] SafeShutdown(app.Listen(":8080"), shutdown(ctx)) And then inside the request handlers: logger := GetLogger(c) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GetLogger(c *fiber.Ctx) *logrus.Entry func NewLogrusAndTraceAwareFiberApp(ctx context.Context, serviceName string) (*fiber.App, func(context.Context) error) func SafeShutdown(errs ...error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetLogger ¶ func GetLogger(c *fiber.Ctx) *logrus.Entry func NewLogrusAndTraceAwareFiberApp ¶ func NewLogrusAndTraceAwareFiberApp(ctx context.Context, serviceName string) (*fiber.App, func(context.Context) error) func SafeShutdown ¶ func SafeShutdown(errs ...error) Types ¶ This section is empty. Source Files ¶ View all Source files observability.go Click to show internal directories. Click to hide internal directories.