Belemetry posts a metrics request with no data points when nothing was measured since the last delta export

Abierto
#15,571 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@msynk ya está trabajando en esto.

Desde el 1/12/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

With delta temporality, Belemetry posts a metrics request that holds no data point when nothing was measured since the last export. The request carries only the resource and the meter's name (about 340 bytes to an OTLP/HTTP endpoint).

Where it's seen

  • A short-lived process (bit CLI): after the run's metrics are exported, the final flush at shutdown posts a second /v1/metrics request with no point in it.
  • An idle server: the same empty request goes out on every export interval.

Why

  • BelemetryPipeline.ExportMetricsAsync (src/Utilities/Belemetry/Bit.Belemetry/Pipeline/BelemetryPipeline.cs) exports whenever Collect() returns any instrument that has ever had a point (metrics.Count == 0 is its only check).
  • The OTLP exporter then leaves out the points with no new value in the interval (BelemetryOtlpMetricPoints.Select, which keeps only HasDeltaUpdate points, and non-zero deltas for sums). It still sends the request around them.

Expected: an export whose metrics have no point left to send after that selection is skipped, so no request goes out. The Azure Monitor exporter should be checked for the same case, since it filters points the same way (BelemetryAzureMonitorEnvelopeSerializer).

Version: Bit.Belemetry 11.0.0-pre-26.

Workaround: a metric processor that drops a metric with no updated point.

Lenguaje dominante
C#
Estrellas
1.4k
Forks
264
Merge medio
5 h 25 min
PR fusionados (30 d)
447

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bitfoundation/bitplatform

Todos los issues de bitfoundation/bitplatform

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.