Commit 227243c
Auto-register extraneous metrics as tracking metrics in Client.attach_data (facebook#5135)
Summary:
Pull Request resolved: facebook#5135
The `Client.attach_data` docstring claims unexpected metric values will be added as tracking metrics, but the code actually raises a `UserInputError`. This diff fixes the implementation to match the docstring: extraneous metrics in `raw_data` are now auto-registered via `configure_tracking_metrics` before the data is passed downstream.
This also applies to `Client.complete_trial` since it delegates to `attach_data`.
Reviewed By: Cesar-Cardoso
Differential Revision: D99386924
fbshipit-source-id: b2be60b72b63d566828dbbd8a01648e38321c9621 parent 74b42c3 commit 227243c
2 files changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
581 | 587 | | |
582 | 588 | | |
583 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 659 | + | |
| 660 | + | |
670 | 661 | | |
671 | 662 | | |
672 | 663 | | |
673 | 664 | | |
| 665 | + | |
| 666 | + | |
674 | 667 | | |
675 | 668 | | |
676 | 669 | | |
| |||
0 commit comments