Skip to content

Configuring plugin before routes breaks all my tests #12

@dormesica

Description

@dormesica

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Hi

I am trying to integrate Otel to my Fastify server. I tried following the requirement from the documentation and set up the plugin right after creating the Fastify instance.

It must be configured before defining routes and other plugins in order to cover the most of your Fastify server.

However, doing so broke all my routes (all tests are failing) many of them return 404.
If I configure the plugin after registering routes it seems to work somewhat okay (endpoint work, I see traces but I don't all my hooks being traced).

Does anyone have any idea why this is happening?
If there is more info I can provide to help diagnose this issue please let me know 🙂

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions