Skip to content

Remove telemetry - #161

Merged
rafiss merged 1 commit into
masterfrom
rafiss/telemetry-on-first-connect
Sep 30, 2026
Merged

rafiss merged 1 commit into
masterfrom
rafiss/telemetry-on-first-connect

Conversation

@rafiss

@rafiss rafiss commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Previously, the Sequelize and sequelize-cockroachdb versions were
recorded with crdb_internal.increment_feature_counter from an afterInit
hook, which runs as soon as a Sequelize instance is constructed. That
made Sequelize open a connection even if the application never used the
instance, and logged a "Could not record telemetry" error when no
database was reachable (e.g. in unit tests). The telemetry queries were
also logged through the application's logger.

Stop sending telemetry since this data is no longer required. The
cockroachdbTelemetryDisabled dialect option is still accepted, but no
longer has any effect.

This also re-enables two Sequelize integration tests that failed
because the telemetry queries were logged through the application's
logger.

Fixes #155.
🤖 Generated with Claude Code

@rafiss
rafiss force-pushed the rafiss/telemetry-on-first-connect branch from 34a29f0 to 907ab5e Compare September 30, 2026 03:22
@rafiss
rafiss changed the base branch from master to rafiss/fix-enum-create-type September 30, 2026 03:22
@rafiss
rafiss force-pushed the rafiss/telemetry-on-first-connect branch from 907ab5e to 1b7684b Compare September 30, 2026 04:26
@rafiss
rafiss added this pull request to stack #163 September 30, 2026 04:35
@rafiss
rafiss marked this pull request as ready for review September 30, 2026 04:35
@rafiss
rafiss removed this pull request from stack #163 September 30, 2026 04:36
@rafiss
rafiss force-pushed the rafiss/telemetry-on-first-connect branch from 1b7684b to 94dc52f Compare September 30, 2026 05:11
@rafiss rafiss changed the title Record telemetry on first connection instead of at init Remove telemetry Sep 30, 2026
@rafiss
rafiss changed the base branch from rafiss/fix-enum-create-type to master September 30, 2026 05:11
@rafiss
rafiss force-pushed the rafiss/telemetry-on-first-connect branch from 94dc52f to 3d5a28f Compare September 30, 2026 05:16
Previously, the Sequelize and sequelize-cockroachdb versions were
recorded with crdb_internal.increment_feature_counter from an afterInit
hook, which runs as soon as a Sequelize instance is constructed. That
made Sequelize open a connection even if the application never used the
instance, and logged a "Could not record telemetry" error when no
database was reachable (e.g. in unit tests). The telemetry queries were
also logged through the application's logger.

Stop sending telemetry since this data is no longer required. The
cockroachdbTelemetryDisabled dialect option is still accepted, but no
longer has any effect.

This also re-enables two Sequelize integration tests that failed
because the telemetry queries were logged through the application's
logger.

Fixes #155.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafiss
rafiss force-pushed the rafiss/telemetry-on-first-connect branch from 3d5a28f to 7d22a41 Compare September 30, 2026 05:19
@rafiss
rafiss merged commit 0f86e4f into master Sep 30, 2026
228 checks passed
@rafiss
rafiss deleted the rafiss/telemetry-on-first-connect branch September 30, 2026 05:24
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.

Telemetry creates error log when using Sequelize without active connections

1 participant