Commit f1f909d
committed
fix: always populate mot.usage in HuggingFace backend (#694)
Token count extraction in _post_process_async was gated behind
`span is not None or metrics_enabled`, so mot.usage was never
populated in plain (non-telemetry) runs. Now extracted unconditionally
— usage is a standard mot field, not a telemetry concern.1 parent 62016fb commit f1f909d
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
1137 | 1136 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
| 1137 | + | |
| 1138 | + | |
1141 | 1139 | | |
1142 | 1140 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
| 1141 | + | |
1146 | 1142 | | |
1147 | 1143 | | |
1148 | 1144 | | |
| |||
0 commit comments