elastic / elastic/apm-agent-python

Investigate options and possible overhead of global string truncation

Đang mở
#306 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
agent-python
Ngôn ngữ chính
Python
Star
431
Fork
239
Merge trung bình
5 ngày 10 giờ
Pull request đã merge (30 ngày)
7

Mô tả

To ensure some user errors don't lead to overblown payload sizes, we want to truncate all strings in the payload to a max length, similar to what we already to with strings that are stored as keywords in Elasticsearch. This could potentially be quite overhead-heavy, so we need benchmarks of different approaches

* explicitly wrap all strings in a `maybe_truncate` function that either returns the string itself or, if necessary, a truncated version
* loop over the payload and truncate all strings before serializing
* modify `JSONSerializer` to truncate strings

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

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

Hướng nghiên cứu

Bắt đầu với JSONSerializer và đường dẫn tuần tự hóa payload được mô tả trong issue. Benchmark ba phương pháp cắt ngắn được liệt kê, bao gồm cả overhead của chúng, và ghi lại kết quả cùng phương pháp được khuyến nghị; issue không chỉ định độ dài tối đa hoặc mục tiêu kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend, performance
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.