Skip to content

Report latency from agent to api#53

Closed
thvadora wants to merge 1 commit into
masterfrom
thvadora/TR-151
Closed

Report latency from agent to api#53
thvadora wants to merge 1 commit into
masterfrom
thvadora/TR-151

Conversation

@thvadora
Copy link
Copy Markdown

This is a small telemetry report, but it will be useful later in the roadmap when we begin work on TR-151. It will help us evaluate whether certain self-hosted node configurations perform better than others in terms of network latency.

For context: later this year, we'll be testing whether running the splight-agent on an edge router with a Hologram.io eSIM is reliable enough to scale DCM operations. While that's a future step, this latency metric is being added now so we have it ready when the time comes.

Important: Do not merge this before the corresponding PR in engine-v4 is merged.

self._report_agent_version()
self._exporter.start()
self._beacon.start()
self._latency_reporter.start()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add this functionality into the "Beacon" process, that already does a ping to a healtcheck endpoint

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that but the beacon responsability is different and I didn't want to couple responsabilities. But if you still think that puting it in the beacon, I can do it tomorrow. let me know

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The beacon is responsible for making a "keep alive" ping, so as part of that keep alive process we can add the report of the latency, I don't see it like problem

@thvadora thvadora closed this Jul 9, 2025
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.

2 participants