Skip to content

Commit 05098be

Browse files
authored
chore: Adding basic usage tracking to Spark contrib plugin (#2402)
Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent b35e1e8 commit 05098be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • sdk/python/feast/infra/offline_stores/contrib/spark_offline_store

‎sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from feast.repo_config import FeastConfigBaseModel, RepoConfig
3030
from feast.saved_dataset import SavedDatasetStorage
3131
from feast.type_map import spark_schema_to_np_dtypes
32+
from feast.usage import log_exceptions_and_usage
3233

3334

3435
class SparkOfflineStoreConfig(FeastConfigBaseModel):
@@ -42,6 +43,7 @@ class SparkOfflineStoreConfig(FeastConfigBaseModel):
4243

4344
class SparkOfflineStore(OfflineStore):
4445
@staticmethod
46+
@log_exceptions_and_usage(offline_store="spark")
4547
def pull_latest_from_table_or_query(
4648
config: RepoConfig,
4749
data_source: DataSource,
@@ -102,6 +104,7 @@ def pull_latest_from_table_or_query(
102104
)
103105

104106
@staticmethod
107+
@log_exceptions_and_usage(offline_store="spark")
105108
def get_historical_features(
106109
config: RepoConfig,
107110
feature_views: List[FeatureView],
@@ -176,6 +179,7 @@ def get_historical_features(
176179
)
177180

178181
@staticmethod
182+
@log_exceptions_and_usage(offline_store="spark")
179183
def pull_all_from_table_or_query(
180184
config: RepoConfig,
181185
data_source: DataSource,

0 commit comments

Comments
 (0)