Skip to content

chore: simplify actor start up#1902

Open
SantiagoPittella wants to merge 6 commits intonextfrom
santiagopittella-simplify-actor-startup
Open

chore: simplify actor start up#1902
SantiagoPittella wants to merge 6 commits intonextfrom
santiagopittella-simplify-actor-startup

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

closes #1888

Simplifies NTX actor startup by removing the AccountOrigin enum. Actors now take a plain NetworkAccountId and on startup wait for a committed account state in the database before producing transactions.

The coordinator can now blindly spawn actors without caring about where the account state comes from since the actor handles it internally.

Regarding monitoring

cc @sergerad @Mirko-von-Leipzig

Additionally, and did not commit it, to monitor the actgor's spawning I added a local observability setup using Grafana and Tempo, using the already exported traces from the node.

This adds a docker-compose.yml that spins up Tempo as the trace backend and Grafana as the dashboard frontend. Tempo receives traces on port 4317 and Grafana is pre-configured with Tempo as a datasource so there is zero manual setup.

This is useful for debugging NTX actor behavior during development since you can see the full span tree for actor spawns, transaction execution, block commits, and gRPC calls; and also Tempo can derive rate, error rate, and duration metrics from traces, which was really useful to track actors spawning.

I can create a PR with that setup if you guys consider it worth it.

@SantiagoPittella SantiagoPittella added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Apr 8, 2026
@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-simplify-actor-startup branch from 5c56d74 to ac15232 Compare April 8, 2026 13:57
@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@SantiagoPittella I think it makes sense to add those - I imagine to the node's compose file that @sergerad is adding.

There should be an open issue about adding more stuff to the compose file.

Comment thread crates/ntx-builder/src/actor/mod.rs
Comment thread crates/ntx-builder/src/actor/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify ntx actor startup

3 participants