Commit 17f8916
fix(logging): Include langfuse logger in JSON logging when langfuse callback is used (BerriAI#19162)
When JSON_LOGS is enabled and langfuse is configured as a success/failure callback,
the langfuse logger now receives the JSON formatter. This ensures langfuse SDK
log messages (like 'Item exceeds size limit' warnings) are output as JSON with
proper level information, instead of plain text that log aggregators may
incorrectly classify as errors.
Fixes issue where langfuse warnings appeared as errors in Datadog due to missing
log level in unformatted output.
Co-authored-by: openhands <openhands@all-hands.dev>1 parent 2c75194 commit 17f8916
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
140 | 160 | | |
141 | 161 | | |
142 | 162 | | |
143 | | - | |
| 163 | + | |
144 | 164 | | |
145 | 165 | | |
146 | 166 | | |
| |||
0 commit comments