Skip to content

feat: replace diagnostics_channel w/ dc-polyfill#5105

Closed
tlhunter wants to merge 1 commit intofastify:nextfrom
tlhunter:tlhunter/dc-polyfill
Closed

feat: replace diagnostics_channel w/ dc-polyfill#5105
tlhunter wants to merge 1 commit intofastify:nextfrom
tlhunter:tlhunter/dc-polyfill

Conversation

@tlhunter
Copy link
Contributor

@tlhunter tlhunter commented Oct 18, 2023

This change replaces the internal diagnostics_channel module with the dc-polyfill package, which aims be backport and polyfill newer diagnostics channel features and bugfixes and make them available to older versions of Node.js. Specifically it supports versions as old as Node.js v12.17.

I've removed the try/catch, but if Fastify runs on versions of Node.js older than 12.17 then I can add the try/catch back.

Checklist

  • run npm run test and npm run benchmark
    • getting (hopefully unrelated) typescript errors
    • benchmark fails, both in next and in my branch
      • funny enough the req/sec increased in this branch (119859.2) as compared to the next branch (117241.6)
  • tests and/or benchmarks are included
    • this reuses the existing diagnostics channel tests
  • documentation is changed or added
    • I don't think it's necessary
  • commit message and code follows the Developer's Certification of Origin
    and the Code of conduct

@tlhunter tlhunter marked this pull request as ready for review October 18, 2023 15:07
@tlhunter
Copy link
Contributor Author

Actually this really isn't all that useful on its own. I'll close it for now and will work on a larger change to introduce TracingChannel.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant