Skip to content

Conversation

stevensJourney
Copy link
Collaborator

@stevensJourney stevensJourney commented Jul 18, 2024

Description

Metrics on Container

This moves the Metrics implementation from a class singleton to the framework Container.

This allows for constructing different Metrics implementations which can be registered during project initialization.

Code in the @powersync/service-core package can fetch the registered Metrics implementation easily without any massive refactoring - this approach is subject to change when a modules system is implemented.

Extendable Config

Extended Metrics implementations will require extended PowerSyncConfig which is collected by a CompoundConfigCollector. This class is now made extendable and generic. Downstream services can implement their own additional validation, decoding and resolving of config.

Copy link

changeset-bot bot commented Jul 18, 2024

🦋 Changeset detected

Latest commit: 6f90ba2

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

This PR includes changesets to release 4 packages
Name Type
@powersync/service-core Minor
@powersync/lib-services-framework Minor
@powersync/service-image Patch
@powersync/service-rsocket-router 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

@stevensJourney
Copy link
Collaborator Author

Closing this stale PR. superseded by #221

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.

1 participant