Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS support floating point input #123

Merged
merged 1 commit into from
May 23, 2024

Conversation

dmehala
Copy link
Collaborator

@dmehala dmehala commented May 22, 2024

Description

According to the Remote Configuration specification, DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS support floating point input and can be set to 0.

Motivation

System-tests use sub-seconds value for fast iteration. In order to test the library against remote configuration tests, the library must support sub-seconds inputs.

Additional Notes

Jira ticket: [PROJ-IDENT]

According to the Remote Configuration specification,
`DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS` support floating point input
and can be set to `0`.
@dmehala dmehala requested a review from a team as a code owner May 22, 2024 19:59
@pr-commenter
Copy link

pr-commenter bot commented May 22, 2024

Benchmarks

Benchmark execution time: 2024-05-22 20:00:41

Comparing candidate commit de92b21 in PR branch dmehala/fix-rc-env-var with baseline commit 622585c in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@@ -21,7 +21,7 @@ Expected<DatadogAgentConfig> load_datadog_agent_env_config() {

if (auto raw_rc_poll_interval_value =
lookup(environment::DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS)) {
auto res = parse_int(*raw_rc_poll_interval_value, 10);
auto res = parse_double(*raw_rc_poll_interval_value);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to myself: a double is too big but I don't have time (don't want yet) to write (and test) a parse_float function.

@dmehala dmehala merged commit 9fedff2 into main May 23, 2024
22 checks passed
@dmehala dmehala deleted the dmehala/fix-rc-env-var branch May 23, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants