@@ -359,8 +359,8 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigRetryDefaultValues)
359359 std::unique_ptr<OtlpGrpcExporter> exporter (new OtlpGrpcExporter ());
360360 const auto options = GetOptions (exporter);
361361 ASSERT_EQ (options.retry_policy_max_attempts , 5 );
362- ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff . count () , 1 );
363- ASSERT_FLOAT_EQ (options.retry_policy_max_backoff . count () , 5 );
362+ ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff , 1.0 );
363+ ASSERT_FLOAT_EQ (options.retry_policy_max_backoff , 5.0 );
364364 ASSERT_FLOAT_EQ (options.retry_policy_backoff_multiplier , 1.5 );
365365}
366366
@@ -374,8 +374,8 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigRetryValuesFromEnv)
374374 std::unique_ptr<OtlpGrpcExporter> exporter (new OtlpGrpcExporter ());
375375 const auto options = GetOptions (exporter);
376376 ASSERT_EQ (options.retry_policy_max_attempts , 123 );
377- ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff . count () , 4.5 );
378- ASSERT_FLOAT_EQ (options.retry_policy_max_backoff . count () , 6.7 );
377+ ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff , 4.5 );
378+ ASSERT_FLOAT_EQ (options.retry_policy_max_backoff , 6.7 );
379379 ASSERT_FLOAT_EQ (options.retry_policy_backoff_multiplier , 8.9 );
380380
381381 unsetenv (" OTEL_EXPORTER_OTLP_TRACES_RETRY_MAX_ATTEMPTS" );
@@ -394,8 +394,8 @@ TEST_F(OtlpGrpcExporterTestPeer, ConfigRetryGenericValuesFromEnv)
394394 std::unique_ptr<OtlpGrpcExporter> exporter (new OtlpGrpcExporter ());
395395 const auto options = GetOptions (exporter);
396396 ASSERT_EQ (options.retry_policy_max_attempts , 321 );
397- ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff . count () , 5.4 );
398- ASSERT_FLOAT_EQ (options.retry_policy_max_backoff . count () , 7.6 );
397+ ASSERT_FLOAT_EQ (options.retry_policy_initial_backoff , 5.4 );
398+ ASSERT_FLOAT_EQ (options.retry_policy_max_backoff , 7.6 );
399399 ASSERT_FLOAT_EQ (options.retry_policy_backoff_multiplier , 9.8 );
400400
401401 unsetenv (" OTEL_EXPORTER_OTLP_RETRY_MAX_ATTEMPTS" );
@@ -523,16 +523,16 @@ TEST_P(OtlpGrpcExporterRetryIntegrationTests, StatusCodes)
523523 if (is_retry_enabled)
524524 {
525525 opts.retry_policy_max_attempts = 5 ;
526- opts.retry_policy_initial_backoff = SecondsDecimal{ 0.1 } ;
527- opts.retry_policy_max_backoff = SecondsDecimal{ 5 } ;
528- opts.retry_policy_backoff_multiplier = 1 ;
526+ opts.retry_policy_initial_backoff = 0 . 1f ;
527+ opts.retry_policy_max_backoff = 5 . 0f ;
528+ opts.retry_policy_backoff_multiplier = 1 . 0f ;
529529 }
530530 else
531531 {
532532 opts.retry_policy_max_attempts = 0 ;
533- opts.retry_policy_initial_backoff = SecondsDecimal{ 0 } ;
534- opts.retry_policy_max_backoff = SecondsDecimal{ 0 } ;
535- opts.retry_policy_backoff_multiplier = 0 ;
533+ opts.retry_policy_initial_backoff = 0 . 0f ;
534+ opts.retry_policy_max_backoff = 0 . 0f ;
535+ opts.retry_policy_backoff_multiplier = 0 . 0f ;
536536 }
537537
538538 auto exporter = otlp::OtlpGrpcExporterFactory::Create (opts);
0 commit comments