Skip to content

Add powersync_sync_connections_total connection metrics - #786

Open
joshuabrink wants to merge 7 commits into
mainfrom
feat/connection-metrics
Open

Add powersync_sync_connections_total connection metrics#786
joshuabrink wants to merge 7 commits into
mainfrom
feat/connection-metrics

Conversation

@joshuabrink

Copy link
Copy Markdown
Contributor

Following #661, this adds connection outcome metrics in order to spot error spikes and measure sync reliability without parsing logs. Auth and validation rejections are deferred.

The new metric powersync_sync_connections_total distinguishes successful streams, failed streams, and rejected connection attempts. To help narrow down failures, it also provides breakdowns by close reason, PowerSync error code, and transport.

AI Usage

Codex gpt-5.6 used for implementation. Manually checked and tested.

@changeset-bot

changeset-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 96f3737

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
Name Type
@powersync/service-core Minor
@powersync/service-types Minor
@powersync/service-rsocket-router Minor
@powersync/service-module-core Minor
@powersync/service-module-convex Patch
@powersync/service-module-mongodb-storage Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mssql Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres-storage Patch
@powersync/service-module-postgres Patch
@powersync/service-image Minor
test-client Patch
@powersync/service-schema Minor
@powersync/service-client Patch
@powersync/lib-service-postgres Patch

Not sure what this means? Click here to learn what changesets are.

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a4e629665

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/service-core/src/routes/endpoints/socket-route.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant