-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make translate_span a little faster (#132)
* Make translate_span a little faster Using py-spy, it looks like the previous version spent some time doing list(default_resource.attributes.keys()) every time it was called. It seems this can be done once in the OTELWriter constructor instead. Also, I think we can make it a set instead of a list (I believe `a in my_set` is a bit quicker than `a in my_list`). Does this commit include tests to verify the speed increase? Nah... 🤷 * isort
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 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
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