In this milestone, I completed the OTLP HTTP exporter implementation for Heka Insights Agent and validated it with both unit tests and Docker-backed integration tests.
Repo: https://github.com/ronin1770/heka-insights-agent
What was implemented in Milestone 4
Milestone 4 includes:
OTLP HTTP exporter wiring
OTLP metric payload mapping
OTLP auth header support
OTLP resource attribute mapping
Retry/backoff behavior for transient failures
Unit test coverage for config + sender + exporter + mapping
Docker integration tests against a real OpenTelemetry Collector
Configuration added
OTLP configuration is environment-driven through .env :
LOG_LOCATION=./log/heka_agent.log CPU_POLL_INTERVAL_SECONDS=10 EXPORTER_TYPE=otlp_http OTLP_HTTP_ENDPOINT=http://localhost:4318/v1/metrics OTLP_HTTP_HEADERS=key=Bearer abcd1234 OTLP_RESOURCE_ATTRIBUTES=service.name=heka-insights-agent,host.name=localhost OTLP_HTTP_TIMEOUT_SECONDS=10 OTLP_HTTP_RETRY_MAX_ATTEMPTS=5 OTLP_HTTP_RETRY_INITIAL_BACKOFF_SECONDS=1…