You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[exporter/prometheusremotewrite] Fix: Don't drop batch in case of failure to translate metrics (#29729)
Don't drop a whole batch in case of failure to
translate from Otel to Prometheus. Instead, with this PR we are trying
to send to Prometheus all the metrics that were properly translated and
create a warning message for failures to translate.
This PR also adds supports to telemetry in this component so that it is
possible to inspect how the translation process is happening and
identify failed translations.
I opted to not include the number of time series that failed translation
because I don't want to make assumptions about how the `FromMetrics`
function works. Instead we are just publishing if there was any failure
during the translation process and the number of time series returned.
**Link to tracking Issue:** #15281
**Testing:** UTs were added to account for the case that you have mixed
metrics, with some succeeding the translation and some failing.
---------
Signed-off-by: Raphael Silva <[email protected]>
Co-authored-by: Anthony Mirabella <[email protected]>
Co-authored-by: bryan-aguilar <[email protected]>
Co-authored-by: Bryan Aguilar <[email protected]>
0 commit comments