hyperlight-dev / hyperlight-dev/hyperlight

Address guest tracing improvements

Đang mở
#964 3 bình luận 0 reaction 1 người được giao Được @dblnz nhận Xem trên GitHub
kind/enhancement
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

The current version using `opentelemetry` is an incremental step, after which additional `tunables` can be added to improve usability.

Improvements to be considered:
- [x] Fix max tracing level based on the max log level the guest is provided
- [ ] The guest logging shall use the same logic as tracing for reporting back to host. [Maybe we can have spans/events emitted as logs in the guest](https://github.com/hyperlight-dev/hyperlight/pull/844#discussion_r2444557732).
- [ ] Change the tracing underlying storage to a circular buffer for traces/events to avoid context switches. This ensures the guest doesn't do host calls to further degrade performance. Trace/logs loss is an acceptable compromise
- [ ] Provide a mechanism on the guest to enable/disable the tracing support, configure the memory used and log level at runtime
- [x] Consider changing to a heap allocated circular buffer, which is runtime configurable
- [x] Use `flatbuffers` to serialize the data exchanged between the guest and host
- [x] CoW related changes

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.