Commit submits the collected samples and purges the batch. If Commit returns a non-nil error, it also rolls back all modifications made in the appender so far, as Rollback would do. In any case, an Appender must not be used anymore after Commit has been called.
()
| 196 | // the appender so far, as Rollback would do. In any case, an Appender |
| 197 | // must not be used anymore after Commit has been called. |
| 198 | Commit() error |
| 199 | |
| 200 | // Rollback rolls back all modifications made in the appender so far. |
| 201 | // Appender has to be discarded after rollback. |
no outgoing calls