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

refactor(backends/datadog): avoid useless call to Datadog API #356

Merged

Conversation

sdenef-adeo
Copy link
Contributor

@sdenef-adeo sdenef-adeo commented Oct 16, 2023

Hello,

Perf improvement. Avoid calling /slo endpoint because the response is not used.

As discussed, I left the call but I added a condition to run it only in debug mode.
NB: SLO's data are available in the /slo/history endpoint call right after this one

Regards,
Sébastien

slo_generator/utils.py Outdated Show resolved Hide resolved
@sdenef-adeo sdenef-adeo force-pushed the refactor/avoid-useless-datadog-api-calls branch from 8c03eb3 to 9f49471 Compare November 3, 2023 12:41
@lvaylet lvaylet merged commit d5e03f0 into google:master Nov 22, 2023
10 checks passed
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