Skip to content

Commit

Permalink
W-13680300: omit null values from response
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoineausf committed Sep 8, 2023
1 parent 4032a7b commit 026ccbf
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ else if ( protobuf )
{
LOG.info( String.format( "carbonapi request: found value [%s]",
( value == null ? "null" : (double) value ) ) );
if ( value == null )
{

metricsSeriesBuilder = metricsSeriesBuilder.addIsAbsent( true );
}
else
if ( value != null )
{
metricsSeriesBuilder = metricsSeriesBuilder.addValues( value ).addIsAbsent( false );
}
Expand Down

0 comments on commit 026ccbf

Please sign in to comment.