[openfeature-hooks-opentelemetry] Use feature_flag.error.message instead of error.message on the evaluation event

Đang mở Phù hợp với người mới
#485 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 1 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
84/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
observability

Hướng nghiên cứu

Issue trỏ đến các dòng 49–50 trong hooks/openfeature-hooks-opentelemetry/src/openfeature/contrib/hook/opentelemetry/__init__.py. Đọc hook và các quy ước sự kiện feature flag OpenTelemetry được liên kết; kiểm tra xem có bài kiểm thử nào bao quát các thuộc tính của sự kiện đánh giá hay không. Công việc hoàn tất khi sự kiện sử dụng feature_flag.error.message và giữ nguyên error.type.

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

Mô tả

The hook sets the error message on the feature_flag.evaluation event as error.message:

https://github.com/open-feature/python-sdk-contrib/blob/main/hooks/openfeature-hooks-opentelemetry/src/openfeature/contrib/hook/opentelemetry/__init__.py#L49-L50

The OpenTelemetry semantic conventions for feature flag events name this attribute feature_flag.error.message:
https://opentelemetry.io/docs/specs/semconv/feature-flags/feature-flags-events/

Teams that check their telemetry against the semantic conventions currently have to wrap the hook or allow the off-convention name.

Proposal: set feature_flag.error.message (keeping error.type as it is). If a transition period is wanted, emit both for one release behind an option.

Happy to open a PR if that direction is welcome.

Ngôn ngữ chính
Python
Star
27
Fork
40
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
10

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-feature/python-sdk-contrib

Tất cả issue của open-feature/python-sdk-contrib

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.