Breaking change in 1.40 to Tracer/Span behavior in opentelemetry-api not documented

Đang mở
#5,009 9 bình luận 2 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
48/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
observability

Hướng nghiên cứu

Bắt đầu bằng việc xem xét PR 4861 và hành vi của opentelemetry-api Span/Tracer mà PR này đã thay đổi. Kiểm tra tài liệu release note và identity check được tham chiếu trong instrumentation/utils.py, sau đó ghi lại các thay đổi đối với span context và hành vi extract/inject, bao gồm cả việc hành vi đó có được chủ đích hay không. Được xem là hoàn thành khi các breaking changes liên quan trong 1.40 và tác động thực tế của chúng được ghi lại rõ ràng.

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

Mô tả

PR https://github.com/open-telemetry/opentelemetry-python/pull/4861 involved breaking changes to fundamental behavior of the opentelemetry-api package, namely the Span/Tracer behavior that IIUC should be stable. Mainly the span context can differ in cases where it was previously the invalid (all-zero) span context, which may also lead to differing extract/inject behavior. E.g. a service that previously did not propagate any trace/span ID from incoming to outgoing request might now do so.
But there are also more subtle differences that might break code that e.g. relied on identity checks for INVALID_SPAN (e.g. https://github.com/open-telemetry/opentelemetry-python-contrib/blob/242cfe1c58d6896144d75c404a4784d4bd16cfed/opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py#L152, not that I can think of any likely scenario where this one would actually be hit).

So I don't want to say that it requires a major version bump (although I also don't want to say it wouldn't make sense), but it should IMHO at least be documented more clearly in release notes.

Maybe these changes were even all unintentional, then maybe it still makes sense to revert them, as the main feature that the PR was meant to implement is only experimental.

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.