Skip to content

RPC: align with naming best practices#3176

Merged
trask merged 7 commits intoopen-telemetry:mainfrom
lmolkova:rpc-system
Dec 9, 2025
Merged

RPC: align with naming best practices#3176
trask merged 7 commits intoopen-telemetry:mainfrom
lmolkova:rpc-system

Conversation

@lmolkova
Copy link
Copy Markdown
Member

@lmolkova lmolkova commented Dec 4, 2025

Fixes #2703

See also: #2921

This PR:

  • renames rpc.system to rpc.system.name. Note: it also updates enum members:
    • connect_rpc is renamed to connectrpc
    • apache_dubbo is renamed to dubbo
    • java_rmi, dotnet_wcf, and onc_rpc are not included in the new enum - we don't have proper conventions for them and can add them to the new enum later on.
  • renames rpc.jsonrpc.request_id to jsonrpc.request.id and rpc.jsonrpc.version to jsonrpc.protocol.version

AWS conventions are intentionally left with deprecated rpc.system - #1545, AWS is not an RPC system and the assumption is that AWS conventions will eventually be fixed.

@github-actions

This comment was marked as resolved.

Comment thread docs/registry/attributes/README.md
@lmolkova lmolkova reopened this Dec 4, 2025
@github-actions

This comment was marked as resolved.

@github-actions github-actions Bot closed this Dec 4, 2025
@lmolkova lmolkova reopened this Dec 4, 2025
@github-actions

This comment was marked as resolved.

@github-actions github-actions Bot closed this Dec 4, 2025
@lmolkova lmolkova moved this from Done to In Progress in RPC Semantic Conventions Stability Dec 4, 2025
@lmolkova lmolkova moved this from Untriaged to Awaiting codeowners approval in Semantic Conventions Triage Dec 4, 2025
@lmolkova lmolkova reopened this Dec 4, 2025
Comment thread docs/object-stores/s3.md
Comment thread docs/registry/attributes/rpc.md Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aligns RPC semantic conventions with OpenTelemetry naming best practices by renaming attributes and enum values to follow consistent patterns. The changes improve clarity and consistency across the semantic conventions.

Key changes:

  • Renames rpc.system to rpc.system.name with updated enum values (e.g., connect_rpcconnectrpc, apache_dubbodubbo)
  • Moves JSON-RPC-specific attributes to a dedicated jsonrpc.* namespace
  • Properly deprecates old attributes with migration paths

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
model/rpc/registry.yaml Renames rpc.system to rpc.system.name, updates enum values to remove underscores (dubbo, connectrpc), removes unsupported systems from enum
model/rpc/spans.yaml Updates references from rpc.system to rpc.system.name and from rpc.jsonrpc.* to jsonrpc.* attributes
model/rpc/common.yaml Updates reference from rpc.system to rpc.system.name
model/rpc/deprecated/registry-deprecated.yaml Adds deprecated definitions for rpc.system, rpc.jsonrpc.request_id, and rpc.jsonrpc.version with proper migration paths
model/jsonrpc/registry.yaml Creates new JSON-RPC attribute namespace with jsonrpc.request.id and jsonrpc.protocol.version
templates/registry/markdown/weaver.yaml Adds JSONRPC acronym for proper documentation formatting
docs/rpc/*.md Updates generated documentation with new attribute names and references
docs/registry/attributes/jsonrpc.md Adds new documentation file for jsonrpc namespace
docs/registry/attributes/rpc.md Updates RPC attribute documentation, moves deprecated attributes to dedicated section
docs/registry/attributes/README.md Adds JSONRPC namespace to attribute registry index
docs/cloud-providers/aws-sdk.md, docs/db/dynamodb.md, docs/object-stores/s3.md Marks rpc.system as deprecated (intentionally retained for AWS conventions)
areas.yaml, AREAS.md Adds area:jsonrpc label to RPC semantic conventions area
.github/ISSUE_TEMPLATE/*.yaml Adds area:jsonrpc option to issue templates
.chloggen/rpc-system-name.yaml Adds changelog entry documenting breaking changes

Comment thread .chloggen/rpc-system-name.yaml Outdated
Comment thread docs/registry/attributes/rpc.md
Comment thread model/jsonrpc/registry.yaml Outdated
@lmolkova lmolkova moved this from Awaiting codeowners approval to Needs More Approval in Semantic Conventions Triage Dec 9, 2025
@joaopgrassi joaopgrassi moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Dec 9, 2025
@trask trask added this pull request to the merge queue Dec 9, 2025
Merged via the queue into open-telemetry:main with commit 18db3e4 Dec 9, 2025
18 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in RPC Semantic Conventions Stability Dec 9, 2025
Cirilla-zmh pushed a commit to Cirilla-zmh/semantic-conventions that referenced this pull request Feb 3, 2026
Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Matthew Hensley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

RPC: adopt system-specific naming practices

7 participants