Skip to content

send metrics events on engine open#69

Merged
zachmu merged 15 commits into
mainfrom
zachmu/metrics3
Feb 7, 2026
Merged

send metrics events on engine open#69
zachmu merged 15 commits into
mainfrom
zachmu/metrics3

Conversation

@zachmu
Copy link
Copy Markdown
Member

@zachmu zachmu commented Feb 5, 2026

No description provided.

@zachmu zachmu requested a review from coffeegoddd February 5, 2026 21:29
Copy link
Copy Markdown
Contributor

@coffeegoddd coffeegoddd left a comment

Choose a reason for hiding this comment

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

I'm not sure this is right... so every time the connector is opened, we launch a long-running go routine that ticks and emits a metrics event every 24 hours? When do these things die? And what if I'm opening thousands of connectors, like in the case of Beads/ GasTown?

If we want this type of behavior we should probably do something like write a file somewhere, then if that thing exists we dont send any events, and if it doesnt exist, we create it and send an event. and then, the next processes that come online can see if its been 24 hours since the file was created, and then in that case emit an event and recreate the file (reset the clock)... or something a bit fancier like this.

Copy link
Copy Markdown
Contributor

@coffeegoddd coffeegoddd left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread connector.go Outdated
@zachmu zachmu merged commit 65f8d61 into main Feb 7, 2026
3 checks passed
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