Visitar URL original
cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributes · Issue #16544 · googleapis/google-cloud-cpp · GitHub
Skip to content

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

Description

@scotthart

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

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

Activity

  1. added
    api: storageIssues related to the Cloud Storage API.
    type: cleanupAn internal cleanup or hygiene concern.
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the Cloud Storage API.type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions