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(agent): PENG-2457 defer sending data to the API in case there's no new data #681

Conversation

matheushent
Copy link
Member

This PR introduces a change in the update_job_metrics function so the API call to insert new metrics is deferred in case there's no new metric, i.e. the list of metrics is empty.


Peer Review

Please follow the upstream omnivector documentation concerning
peer-review guidelines.

…o new data

This commit introduces a change in the *update_job_metrics* function so the API call
to insert new metrics is deferred in case there's no new metric, i.e. the list of
metrics is empty.
@matheushent matheushent force-pushed the task/PENG-2457-defer-when-no-metric-is-available branch from bbfcec9 to c391f16 Compare December 19, 2024 21:12
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feature/PENG-2455--job-metric-collection@de62d0d). Learn more about missing BASE report.

Additional details and impacted files
@@                             Coverage Diff                             @@
##             feature/PENG-2455--job-metric-collection     #681   +/-   ##
===========================================================================
  Coverage                                            ?   92.83%           
===========================================================================
  Files                                               ?       88           
  Lines                                               ?     4844           
  Branches                                            ?        0           
===========================================================================
  Hits                                                ?     4497           
  Misses                                              ?      347           
  Partials                                            ?        0           
Flag Coverage Δ
agent 93.55% <ø> (?)
api 95.39% <ø> (?)
core 96.31% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matheushent matheushent merged commit 3555fe0 into feature/PENG-2455--job-metric-collection Dec 20, 2024
13 checks passed
@matheushent matheushent deleted the task/PENG-2457-defer-when-no-metric-is-available branch December 20, 2024 12:39
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