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

[indexer-alt]: Changes visibility of IngestionService and Indexer metrics #21552

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikos-kitmeridis
Copy link
Contributor

Description

Changes visibility of IngestionService and Indexer metrics to public.
This is useful for cases where the IngestionService is needed in a standalone mode and out of the context of the Indexer.
For example, when a custom range of checkpoints need to be parsed.

let mut ingestion_service = IngestionService::new(
        client_args,
        IngestionConfig::default(),
        metrics,
        cancel.clone(),
    )?;
    let (mut rx, _) = ingestion_service.subscribe();

    // Fetch malicious transactions and start ingestion
    let checkpoint_ids = pipeline.fetch_malicious_trxs().await?;
    println!("Found {} checkpoint IDs to process", checkpoint_ids.len());

    let (_, _) = ingestion_service
        .run(checkpoint_ids)
        .await
        .context("Failed to start ingestion service")?;

Test plan

Existing tests pass


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):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

@nikos-kitmeridis nikos-kitmeridis requested a review from amnn March 20, 2025 15:22
Copy link

vercel bot commented Mar 20, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Mar 20, 2025 3:22pm
sui-kiosk ⬜️ Ignored (Inspect) Mar 20, 2025 3:22pm

@nikos-kitmeridis nikos-kitmeridis temporarily deployed to sui-typescript-aws-kms-test-env March 20, 2025 15:22 — with GitHub Actions Inactive
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