devloperdevesh / devloperdevesh/FaultPlane
[Good First Issue] Implement unit test coverage for internal/telemetry/metrics_exporter.go
Open
@nitaandriyani133-gif is already working on this.
Since Sep 11, 2026.
enhancement
good first issue
help wanted
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 14m
- Merged PRs (30d)
- 57
Description
Our core metrics_exporter.go writes raw Prometheus metrics directly onto the network wire to eliminate userspace runtime heap reflection latencies.
We need to add a comprehensive unit test suite inside internal/telemetry/metrics_exporter_test.go to validate:
- The telemetry HTTP handler initializes without port leakage.
- Atomic counters correctly increment on call vectors via
IncrementTrafficCounters. - The generated text format strictly adheres to Prometheus text representation v0.0.4.
This is an isolated, high-utility task perfect for developers looking to get familiar with our zero-allocation memory footprint!
Contributor guide
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.
Assessment
This issue has not been assessed yet.