Commit 5250529
committed
fix: restore try-catch around BigInt conversion in unixNanoToDateTime
BigInt(text) throws SyntaxError for non-integer strings (e.g. '12.34',
'abc'). Since this function processes external OTLP trace data, malformed
input is realistic and callers have no surrounding error handling. Wrap
the conversion in try-catch to gracefully return null on invalid input.1 parent 00d4b68 commit 5250529
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments