Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Remove per-invocation Lambda lifecycle INFO logs

Đang mở
#238 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, python
Lĩnh vực
observability

Hướng nghiên cứu

Locate the EventGate and EventStats Lambda entry points and the code emitting lifecycle messages, then review ADR-002 and the existing request-completion logging. Exercise both warm and normal invocations with LOG_LEVEL=INFO and add or run tests that count INFO records. Done means each invocation has one structured Request completed. record, with step detail remaining at DEBUG.

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

Mô tả

bug
Describe the bug

Lambda invocations emit additional plaintext lifecycle messages such as lambda started and lambda finished alongside request logs. This violates ADR-002 observability logging budget: one INFO request-outcome record per invocation, with outcome data attached as structured fields rather than additional lines.

Steps to Reproduce
  1. Invoke either EventGate or EventStats Lambda with LOG_LEVEL=INFO.
  2. Inspect CloudWatch logs for one invocation.
  3. Observe plaintext Lambda start/finish lifecycle messages in addition to structured request completion output.
Expected state

For each normal Lambda invocation, emit exactly one request-scoped INFO record: Request completed.

  • Include status, duration, correlation ID, and handler outcome as structured JSON fields.
  • Keep request step detail at DEBUG.
  • Preserve ADR-approved container-lifecycle records only when tied to cold start, initialization, or connection age.
  • Remove or downgrade per-invocation plaintext lifecycle messages so they cannot inflate INFO log volume.
Impact / Severity

Low

Attachments / Evidence

ADR-002, “Logging strategy”:

  • One INFO line per request.
  • Handler outcomes must use fields on completion record, not extra log lines.
  • Lifecycle INFO records allowed only when tied to container or connection age, not request count.

Verify both EventGate and EventStats Lambda paths, including warm invocations, using tests that assert INFO-record count per invocation.

Ngôn ngữ chính
Python
Star
4
Fork
0
Merge trung bình
3 ngày 7 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AbsaOSS/EventGate

Tất cả issue của AbsaOSS/EventGate

Issue tương tự

Thêm issue về Python

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.