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

refactor(indexer-alt): remove dependency on mysten-metrics #20499

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

amnn
Copy link
Member

@amnn amnn commented Dec 3, 2024

Description

Part of the preparation for factoring out the indexer framework and schema. Removing a dependency on mysten-metrics because this is probably not something we want people outside of Mysten to depend on, and it is used in code that would be factored into the indexer framework.

This means we lose some metrics related to thread stalls, and number of tracked tasks, but as far as I'm aware, we don't rely on these metrics anywhere.

Test plan

CI


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

## Description
Part of the preparation for factoring out the indexer framework and
schema. Removing a dependency on `mysten-metrics` because this is
probably not something we want people outside of Mysten to depend on,
and it is used in code that would be factored into the indexer
framework.

This means we lose some metrics related to thread stalls, and number of
tracked tasks, but as far as I'm aware, we don't rely on these metrics
anywhere.

## Test plan
CI
@amnn amnn self-assigned this Dec 3, 2024
Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 11:47pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Dec 3, 2024 11:47pm
sui-kiosk ⬜️ Ignored (Inspect) Dec 3, 2024 11:47pm
sui-typescript-docs ⬜️ Ignored (Inspect) Dec 3, 2024 11:47pm

@amnn amnn merged commit 9eb36b1 into main Dec 4, 2024
52 checks passed
@amnn amnn deleted the amnn/idx-rm-mm branch December 4, 2024 16:21
@lxfind
Copy link
Contributor

lxfind commented Dec 4, 2024

Removing a dependency on mysten-metrics because this is probably not something we want people outside of Mysten to depend on

I don't quite understand why this is important. The indexer framework would already has a lot of dependencies to other crates, what is special about mysten-metrics?

@amnn
Copy link
Member Author

amnn commented Dec 4, 2024

The indexer framework would already has a lot of dependencies to other crates, what is special about mysten-metrics?

It does, but this is probably the only dependency that it had which was really an "internal" dependency, where people might make changes to this crate without taking into account that it's used by people outside

amnn added a commit that referenced this pull request Dec 4, 2024
## Description

Pull out the parts of `sui-indexer-alt` that can be used to create any
indexer, in `sui-indexer-alt-framework`. Also take this opportunity to
clean up dependencies and lock down visibilities between projects.

## Test plan

CI

## Stack

- #20499 

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
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.

3 participants