MCPcopy Index your code
hub / github.com/feast-dev/feast / track_transformation

Function track_transformation

sdk/python/feast/metrics.py:392–398  ·  view source on GitHub ↗

Record the duration of an on-demand feature view read-path transformation.

(odfv_name: str, mode: str, duration_seconds: float)

Source from the content-addressed store, hash-verified

390
391
392def track_transformation(odfv_name: str, mode: str, duration_seconds: float):
393 """Record the duration of an on-demand feature view read-path transformation."""
394 if not _config.online_features:
395 return
396 transformation_duration_seconds.labels(odfv_name=odfv_name, mode=mode).observe(
397 duration_seconds
398 )
399
400
401def track_write_transformation(odfv_name: str, mode: str, duration_seconds: float):

Calls 2

observeMethod · 0.80
labelsMethod · 0.80