Record the duration of an on-demand feature view read-path transformation.
(odfv_name: str, mode: str, duration_seconds: float)
| 390 | |
| 391 | |
| 392 | def 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 | |
| 401 | def track_write_transformation(odfv_name: str, mode: str, duration_seconds: float): |