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

オープン
#15,571 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@msynk がすでに取り組んでいます。

2026年12月1日 から。

評価

この issue はまだ評価されていません。

説明

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.

主要言語
C#
スター
1.4k
フォーク
264
平均マージ
5時間 25分
マージ済み PR(30日)
447

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitfoundation/bitplatform のほかの issue

bitfoundation/bitplatform の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。