Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: Remove unnecessary fmt.Sprintf usage (#161)
## Which problem is this PR solving? While doing some profilling with Pyroscope, it was detected fmt.Sprintf was a causing high memory allocations. Upon reviewing the area, the structs had a `String()` function we should use instead. <img width="1638" alt="image" src="https://github.com/honeycombio/honeycomb-ebpf-agent/assets/3481731/33e9211d-fbbe-4e7b-9121-23ff9fb2c304"> ## Short description of the changes - Replace `fmt.Sprintf` usage with struct's `String()` func ## How to verify that this has the expected result Memory allocations from using fmt.Sprintf during factory.New calls are reduced.
- Loading branch information