Record the duration of an on-demand feature view write-path transformation.
(odfv_name: str, mode: str, duration_seconds: float)
| 399 | |
| 400 | |
| 401 | def track_write_transformation(odfv_name: str, mode: str, duration_seconds: float): |
| 402 | """Record the duration of an on-demand feature view write-path transformation.""" |
| 403 | if not _config.online_features: |
| 404 | return |
| 405 | write_transformation_duration_seconds.labels( |
| 406 | odfv_name=odfv_name, mode=mode |
| 407 | ).observe(duration_seconds) |
| 408 | |
| 409 | |
| 410 | def track_materialization( |