-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port telemetry to FeatureStore API (#1446)
* Port telemetry to FeatureStore API Signed-off-by: Jacob Klegar <jacob@tecton.ai> * formatting Signed-off-by: Jacob Klegar <jacob@tecton.ai> * lint Signed-off-by: Jacob Klegar <jacob@tecton.ai> * Add telemetry to all FeatureStore methods Signed-off-by: Jacob Klegar <jacob@tecton.ai> * Move telemetry into module Signed-off-by: Willem Pienaar <git@willem.co> * Remove version code Signed-off-by: Willem Pienaar <git@willem.co> * Fix broken telemetry tests Signed-off-by: Willem Pienaar <git@willem.co> * Remove debug code Signed-off-by: Willem Pienaar <git@willem.co> Co-authored-by: Willem Pienaar <git@willem.co>
- Loading branch information
Showing
6 changed files
with
219 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pkg_resources | ||
|
||
|
||
def get_version(): | ||
""" | ||
Returns version information of the Feast Python Package | ||
""" | ||
|
||
try: | ||
sdk_version = pkg_resources.get_distribution("feast").version | ||
except pkg_resources.DistributionNotFound: | ||
sdk_version = "unknown" | ||
return sdk_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.