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

cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributes

Đang mở Phù hợp với người mới
#16,544 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Xem xét năm tệp được liệt kê trong google/cloud/storage/internal/async/, bắt đầu với các phần triển khai tracing và các bài kiểm thử tương ứng. Tìm các chỗ sử dụng rpc.message.type và rpc.message.id rồi xóa hoặc dọn dẹp chúng, vì issue cho biết các thuộc tính này đã lỗi thời và không có thuộc tính thay thế. Chạy các bài kiểm thử tracing của reader và writer để xác minh hành vi đã cập nhật.

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

Mô tả

api: storage type: cleanup

Summary

Several async Cloud Storage tracing implementations currently record span events with the hardcoded string literals /*sc::kRpcMessageType=*/"rpc.message.type" and /*sc::kRpcMessageId=*/"rpc.message.id".

In OpenTelemetry Semantic Conventions v1.40.0 (introduced in opentelemetry-cpp v1.26.0 in <opentelemetry/semconv/incubating/rpc_attributes.h>), opentelemetry::semconv::rpc::kRpcMessageType and opentelemetry::semconv::rpc::kRpcMessageId were marked OPENTELEMETRY_DEPRECATED with:

  • "reason": "obsoleted"
  • "note": "Deprecated, no replacement at this time."

Because these semantic convention attributes are obsolete upstream with no replacement, we should remove or clean up our usage of "rpc.message.type" and "rpc.message.id" in google/cloud/storage/internal/async/.

Background

  • These attributes were originally added/updated as string literals in:
    • #14373 (chore(otel): use newer messaging semantic conventions)
    • #15078 (feat(storage): Add bidiread and bidi appendable write to the async client.)
    • #16118 (fix(storage): Add telemetry tracing support for async stream Close())
  • Unlike other /*sc::...=*/ string literals across the codebase, we intentionally did not migrate these to opentelemetry::semconv::rpc::kRpcMessageType / kRpcMessageId because doing so triggers -Wdeprecated-declarations compiler warnings when building against opentelemetry-cpp >= 1.26.0.

Affected Files

  • google/cloud/storage/internal/async/object_descriptor_reader_tracing.cc
  • google/cloud/storage/internal/async/reader_connection_tracing.cc
  • google/cloud/storage/internal/async/reader_connection_tracing_test.cc
  • google/cloud/storage/internal/async/writer_connection_tracing.cc
  • google/cloud/storage/internal/async/writer_connection_tracing_test.cc
Ngôn ngữ chính
C++
Star
659
Fork
471
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
100

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 googleapis/google-cloud-cpp

Tất cả issue của googleapis/google-cloud-cpp

Issue tương tự

Thêm issue về C++

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.