github keepsuit/laravel-opentelemetry 2.4.1

one hour ago

Fixes

Delta metrics no longer make Prometheus reject whole exports. With Delta temporality, the OpenTelemetry PHP SDK exports every instrument on each collection, also when nothing was recorded since the previous one. Such a metric has no data points. Prometheus' OTLP endpoint rejects the whole request when it finds one, so every metric in the same export was lost. Typical cases:

  • an idle laravel.reverb.messages took laravel.reverb.active_connections down with it;
  • an idle histogram in a queue worker took the worker's other metrics down with it.

The OTLP metrics exporter now leaves out metrics without data points, and makes no request when nothing is left. Cumulative exports are unaffected.

If you use Delta and Prometheus, look for empty data points. <metric> is dropped in the Prometheus logs, or for HTTP 500 errors in your collector's exporter, to see whether you were affected.

What's Changed

  • Leave metrics without data points out of OTLP exports by @cappuc in #122

Full Changelog: 2.4.0...2.4.1

Don't miss a new laravel-opentelemetry release

NewReleases is sending notifications on new releases.