You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributes #16544
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-cppv1.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:
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.
Activity