-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Fastify 4 #10
Comments
https://fastify.dev/docs/latest/Reference/LTS/ Notice that v4 is only supported through the end of June 2025. Basically only 5 months at this point. In my opinion, it would be far wiser for people to focus their efforts on migrating to v5 instead of adding support to this module for v4. |
From my POV, since we are in the I would not like to abandon our users for a string check at this stage: the open-telemetry org give us that ownership and they were supporting fastify v3 too What I would like to understand is: what are we missing for a v1 @metcoder95 from your prospective? The perfect scenario I see is the following (but it requires more effort):
|
Feature wise, the library should be ok for reaching a stable version, tho I've been waiting until it is merged to the OTel registry to make the official transition. OTel team is at a disposal of maintain their instrumentation for the upcoming months until v4 gets EOL. There's no much effort on supporting v4 within the v1 of the instrumentation, tho it is hard to try to ensure compatibility with even older versions (v3 backwards). The last being said, I'm fine with releasing v1 with support for Fastify v4 and expedite a v2 scoping to support only v5.
|
Let's finish support for v5, then identify how hard it would be to support Fastify v4, if at all possible. |
Is there a PR already or should we do it? Not sure if these are enough: |
Yeah, these are enough and handled by the OTel team. On our end is only needed to add it to the registry, PR sitting for review: open-telemetry/opentelemetry.io#6024 |
Prerequisites
🚀 Feature Proposal
We at Sentry ship the fastify instrumentation as a dependency to our users, so that users get fastify instrumentation out of the box.
We would have a hard time updating to this package, as this only instruments fastify 5+, and obviously the vast majority of our users is not on fastify 5, so they would stop getting instrumentation.
Would it be hard to also support fastify 4 here? Looking at this PR: https://github.com/open-telemetry/opentelemetry-js-contrib/pull/2460/files it seems that it should be possible to support both versions. Considering fastify 5 is out for a pretty short time only, so far 🤔
Motivation
We want to be able to provide fastify instrumentation for as many users as possible.
Example
No response
The text was updated successfully, but these errors were encountered: