Fail to restart monitoring server with the same Store
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- haskell
- Domain
- observability
Research direction
Start at System.Remote.Monitoring.forkServerWith and its Metrics.registerCounter "ekg.server_timestamp_ms" call, then inspect System.Metrics.hs around line 214 and the Store lifecycle. Reproduce the first start, explicit serverThreadId shutdown, and restart with the same Store. Done means the restart no longer fails because the metric name is already registered.
Written by the indexing model from the issue text.
Description
When I run System.Remote.Monitoring.forkServerWith function the first time - it works perfectly. But if I killed the server explicitly (using serverThreadId) and then try to start it again with the same Store, the server cannot be launched because of an exception:
The name ""ekg.server_timestamp_ms"" is already taken by a metric.
CallStack (from HasCallStack):
error, called at ./System/Metrics.hs:214:5 in ekg-core-0.1.1.7-6wBeq6DHUUjI67QEVzudFR:System.Metrics
This is the first line in forkServerWith function:
Metrics.registerCounter "ekg.server_timestamp_ms" getTimeMs store
Unfortunately, there is no way to "unregister" this Counter before restarting of the server. So, what can I do?
- Dominant language
- JavaScript
- Stars
- 255
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haskell-github-trust/ekg
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
haskell-github-trust/ekg#97 · 1 comment ·
-
Add tags support Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
haskell-github-trust/ekg#75 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
haskell-github-trust/ekg#73 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
haskell-github-trust/ekg#71 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
haskell-github-trust/ekg#69 · 1 comment ·
All issues in haskell-github-trust/ekg
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100