Commit 605e479
authored
L-849 Send logs in configured batches, repeat sending unsuccessful data (#18)
* Do not sent batches larger than configured batchSize to Better Stack
* Repeat sending logs that were not successfully accepted by Better Stack
* Accept all 2xx status codes as successful
* Ensure reflushing on non-2xx status code or when queue overfilled1 parent 6c4707a commit 605e479
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
136 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
137 | 144 | | |
| 145 | + | |
138 | 146 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
151 | | - | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
0 commit comments