Skip to content

Expand details in database application name #293

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Jul 1, 2025

Follow-up to #291:

  1. Adds the version to MongoDB appName.
  2. Adds powersync and the version as a MongoDB "wrapping driver".
  3. Adds program_version for MySQL.
  4. Changes Postgres application_name to powersync/${version} / powersync-storage/${version}.

Postgres:

 usename  | client_addr |     application_name     |         backend_type         
----------+-------------+--------------------------+------------------------------
 postgres | 127.0.0.1   | powersync-storage/1.13.3 | client backend
 postgres | 127.0.0.1   | powersync/1.13.3         | walsender
 postgres | 127.0.0.1   | powersync/1.13.3         | client backend

MySQL:

+----------------+-----------------+--------------+------------------+
| PROCESSLIST_ID | ATTR_NAME       | ATTR_VALUE   | ORDINAL_POSITION |
+----------------+-----------------+--------------+------------------+
|             26 | program_name    | powersync    |                2 |
|             26 | program_version | 1.13.3       |                3 |
+----------------+-----------------+--------------+------------------+

MongoDB:

clientMetadata: {
  application: { name: 'powersync 1.13.3' },
  driver: { name: 'nodejs|powersync', version: '6.14.2|1.13.3' },
  platform: 'Node.js v22.14.0, LE',
  os: ...
}

clientMetadata: {
  application: { name: 'powersync-storage 1.13.3' },
  driver: { name: 'nodejs|powersync-storage', version: '6.14.2|1.13.3' },
  platform: 'Node.js v22.14.0, LE',
  os: ...
}

@rkistner rkistner requested a review from stevensJourney July 1, 2025 14:14
Copy link

changeset-bot bot commented Jul 1, 2025

⚠️ No Changeset found

Latest commit: ca99a00

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 12 packages
Name Type
@powersync/service-module-mongodb-storage Patch
@powersync/service-module-postgres-storage Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-postgres Patch
@powersync/service-module-mysql Patch
@powersync/lib-service-mongodb Patch
@powersync/service-core Minor
@powersync/service-image Minor
@powersync/service-schema Minor
@powersync/service-core-tests Patch
@powersync/service-module-core Patch
test-client Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@rkistner rkistner merged commit 61f48cd into main Jul 1, 2025
21 checks passed
@rkistner rkistner deleted the mongodb-driver-powersync branch July 1, 2025 15:12
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