Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Log and add agent, kernel and btfEnabled to events (#52)
## Which problem is this PR solving? Adds agent, kernel and btf enabled fields to events. - Closes #47 ## Short description of the changes - Add BtfEnabled func to utils - Log agent version, kernel version and if btf is enabled at startup - Add agent version, kernel version and btfEnabled fields to all events ## How to verify that this has the expected result - Agent logs agent version, kernel version and if btf is enabled at start up - Events sent to Honeycomb include fields for agent version, kernel version and if btf is enabled ```sh # Local Docker Desktop: 2023-08-03 10:15:00 2023/08/03 14:15:00 Starting Honeycomb eBPF agent v0.0.2 2023-08-03 10:15:00 2023/08/03 14:15:00 Host kernel version: 5.15.49 2023-08-03 10:15:00 2023/08/03 14:15:00 BTF enabled: false # EKS on ARM 2023/08/03 14:19:26 Starting Honeycomb eBPF agent v0.0.2 2023/08/03 14:19:26 Host kernel version: 5.10.184 2023/08/03 14:19:26 BTF enabled: true ``` ![event-with-metadata-eks-docker](https://github.com/honeycombio/honeycomb-ebpf-agent/assets/29520003/c2083f6c-411e-4a79-98b4-2bfc419af610) --------- Co-authored-by: Mike Goldsmth <goldsmith.mike@gmail.com>
- Loading branch information