Address potential unhandled exceptions in OTLP exporters

Đang mở
#5,050 4 bình luận 1 reaction 1 người được giao Xem trên GitHub

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

@herin049 đang làm issue này rồi.

Từ ngày 7/4/2026.

  • #5285 của @mohd-ibadullah — đã đóng, không merge

Đánh giá

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

Mô tả

bug
Is your feature request related to a problem?

Under scenarios when invalid signal-specific objects as passed to OTLP exporters, an unhandled exception can be thrown which directly violates the requirements outlined by the spec: https://opentelemetry.io/docs/specs/otel/error-handling/

OpenTelemetry implementations MUST NOT throw unhandled exceptions at run time.

Two ways in which this issue can be addressed are:

  1. Update encode_metrics/encode_traces/encode_logs to NOT raise an exception, and instead log an error when unexpected data is encountered
  2. Update OLTP metric exporters to handle the exception, logging the error and returning an export failure result

For additional context see #4996.

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Ngôn ngữ chính
Python
Star
2.7k
Fork
1.1k
Merge trung bình
3 ngày 12 giờ
Pull request đã merge (30 ngày)
16

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

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 open-telemetry/opentelemetry-python

Tất cả issue của open-telemetry/opentelemetry-python

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.