Skip to content

impl(opentelemetry): replace deprecated semantic convention symbols - #16533

Open
scotthart wants to merge 1 commit into
googleapis:mainfrom
scotthart:otel_deprecated_sem_conv_rpc
Open

scotthart wants to merge 1 commit into
googleapis:mainfrom
scotthart:otel_deprecated_sem_conv_rpc

Conversation

@scotthart

Copy link
Copy Markdown
Member

No description provided.

@scotthart
scotthart requested a review from a team as a code owner October 2, 2026 21:46

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the gRPC OpenTelemetry span creation to conform to OpenTelemetry RPC semantic conventions by using the fully-qualified logical name for rpc.method, deprecating rpc.service, and transitioning from rpc.system to rpc.system.name. The accompanying unit tests have been updated accordingly. Feedback on the changes suggests replacing the use of auto with an explicit std::string type for the fully_qualified_method variable to comply with the repository's style guide regarding type deduction.

// be the fully-qualified logical name (e.g. "<service>/<method>") and that
// `rpc.service` is deprecated in favor of it.
// https://opentelemetry.io/docs/specs/semconv/rpc/rpc-spans/
auto fully_qualified_method =

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the repository style guide, auto should not be used when it obscures function return types. Since absl::StrCat returns a std::string, please declare the variable with an explicit std::string type.

  std::string fully_qualified_method =
References
  1. Reject auto when it hides function return types. (link)

This branch was successfully deployed

1 active deployment
false — 541a2bbd Deployed Oct 2, 2026 by scotthart via Save PR ref #12253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant