Skip to content
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

[Feature] Configurable metrics #41

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

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

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