Skip to content

Conversation

@carlosantoniodasilva
Copy link
Member

@carlosantoniodasilva carlosantoniodasilva commented Feb 4, 2026

This will report the fastify/express/bull/bullmq version they're using with each report, as well as registering node-core as an adapter without a collector to report its version & node version, so we can more easily troubleshoot things if necessary and also verify version support on our side.

This matches the behavior of Ruby/Python packages as well.

@carlosantoniodasilva carlosantoniodasilva self-assigned this Feb 4, 2026
Judoscale.registerAdapter('judoscale-node', null, {
adapter_version: packageInfo.version,
language_version: process.version,
})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Register node-core so we can report its version as well as the node version.

There's a bit of an inconsistency between Ruby/Node & Python here, in that Python only reports platform_version for everything, while Ruby/Node use language_version vs framework_version. I think that's something we should consider to make consistent across the board eventually.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda like language_version & framework_version, but maybe we don't need that differentiation and can just make it like python does, because we know the version from the core packages represent the language and from the other specific packages it's the framework.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosantoniodasilva carlosantoniodasilva marked this pull request as ready for review February 4, 2026 13:59
Copy link
Contributor

@adamlogic adamlogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!!

Judoscale.registerAdapter('judoscale-node', null, {
adapter_version: packageInfo.version,
language_version: process.version,
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Base automatically changed from ca-versions to main February 5, 2026 12:32
This will report the fastify/express/bull/bullmq version they're using
with each report, so we can more easily troubleshoot things if necessary
and also verify version support on our side.

This matches the behavior of Ruby/Python packages as well.
This allows us to report its adapter version & node version so we can
keep track of versions supported, and it can aid troubleshooting.

We need to make sure we skip trying to collect metrics from it though
since there's no collector, so the report code was changed slightly to
accommodate for that, and tests as well which were relying on the first
registered adapter being the one they were testing against (which is no
longer true.)
@carlosantoniodasilva carlosantoniodasilva merged commit ef3482b into main Feb 5, 2026
32 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-report-versions branch February 5, 2026 12:38
@github-actions github-actions bot mentioned this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants