-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix encodnig to dict for events (#65)
* Make events behave similar to the EEC while on debug * # 50 - Fix event batch size calculation We can't use len(dict) because that returns the number of items in the dict, not the size in bytes We need to use len(f"{dict}".encode()) Which is of course more expensive but it is the only way to get the data in bytes Maybe a better way would be to split the list in half iteratively until we have a list that is less than the size Because otherwise we need to calculate this for every single item in the list, which is too much * Rework batch logic * Fix #50 * Fix #52 Add tests for splitting metrics and events * Fix debug client events when sending a single event * encode to json and add test * fix test --------- Co-authored-by: David Lopes <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
__version__ = "1.1.21" | ||
__version__ = "1.1.22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters