Skip to content

Fix get_online_features telemetry to only log every 10000 times - #1786

Merged
feast-ci-bot merged 3 commits into
feast-dev:masterfrom
felixwang9817:telemetry
Aug 18, 2021
Merged

feast-ci-bot merged 3 commits into
feast-dev:masterfrom
felixwang9817:telemetry

Conversation

@felixwang9817

Copy link
Copy Markdown
Collaborator

Signed-off-by: Felix Wang wangfelix98@gmail.com

What this PR does / why we need it: Telemetry for get_online_features currently has a bug where telemetry is being logged during every call to get_online_features, instead of every 10000 calls. This PR fixes that bug.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
@codecov-commenter

codecov-commenter commented Aug 18, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1786 (c40c8e6) into master (da436b5) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1786      +/-   ##
==========================================
- Coverage   85.37%   85.35%   -0.02%     
==========================================
  Files          88       88              
  Lines        6583     6584       +1     
==========================================
  Hits         5620     5620              
- Misses        963      964       +1     
Flag Coverage Δ
integrationtests 85.28% <0.00%> (-0.02%) ⬇️
unittests 63.54% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
sdk/python/feast/usage.py 60.95% <0.00%> (-0.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da436b5...c40c8e6. Read the comment docs.

@felixwang9817

Copy link
Copy Markdown
Collaborator Author

/kind bug

Comment thread sdk/python/feast/usage.py Resolved
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: achals, felixwang9817, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop

woop commented Aug 18, 2021

Copy link
Copy Markdown
Member

/lgtm

@feast-ci-bot
feast-ci-bot merged commit 7ef5a41 into feast-dev:master Aug 18, 2021
@felixwang9817
felixwang9817 deleted the telemetry branch August 18, 2021 18:06
woop pushed a commit that referenced this pull request Aug 20, 2021
* Fix get_online_features telemetry to only log every 10000 times

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Avoid int overflow

Signed-off-by: Felix Wang <wangfelix98@gmail.com>

* Log telemetry on second but not first call

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants