devloperdevesh / devloperdevesh/FaultPlane

[Good First Issue] Implement unit test coverage for internal/telemetry/metrics_exporter.go

Open
#355 2 comments 0 reactions 1 assignee View on GitHub

@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:

  1. The telemetry HTTP handler initializes without port leakage.
  2. Atomic counters correctly increment on call vectors via IncrementTrafficCounters.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.