Commit 8997983
committed
app/vlinsert/opentelemetry: properly clean log attribute to the underlying byte slice after parsing the EventName field at the LogRecord
Previously the old log attributes at fs.Fields could continue pointing to the underlying byte slice
(the whole protobuf message received from the client) for long period of time
after parsing the LogRecord.EventName field. This could result in excess memory usage.
Fix this by properly cleaning all the references at fs.Fields after parsing the LogRecord.EventName field.
Updates #8691 parent bae626a commit 8997983
File tree
2 files changed
+6
-3
lines changed- app/vlinsert/opentelemetry
- docs/victorialogs
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | | - | |
182 | 183 | | |
183 | | - | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments