Skip to content

5.4.0 — 2026-09-14

5.3.0 → | ↑ 5.x series

Added

Configs - OpenTelemetry

  • Prometheus Pushgateway exporter - METRICS_EXPORTER=pushgateway pushes Prometheus text to a Pushgateway with no local scrape server.
    • METRICS_PUSHGATEWAY_URL is required when the exporter is pushgateway
    • METRICS_PUSHGATEWAY_JOB defaults to SERVICE_NAME
    • Interval, timeout, grouping key (max_length=16), and delete-on-shutdown are configurable via METRICS_PUSHGATEWAY_*

Helpers - OpenTelemetry

  • Pushgateway push loop - Daemon thread calls push_to_gateway on the configured interval; failures are logged and never roll back providers
  • metrics_registry() - Public accessor for the Prometheus CollectorRegistry used by pull and pushgateway

Fixed

Helpers - OpenTelemetry

  • Pull scrape bind isolation - A busy METRICS_PULL_PORT logs a warning and continues. Traces, logs, and metrics providers stay active instead of being shut down by an optional scrape side-channel.

Tests

Tests - OpenTelemetry

  • Pushgateway and scrape isolation BDD - Scenarios cover bind failure keeping providers, stubbed push/delete, and push failure not clearing telemetry.