Skip to content

Gate Dubbo registry server.address/server.port behind stable rpc semconv#19285

Merged
trask merged 2 commits into
open-telemetry:mainfrom
trask:dubbo-registry-server-address-stable-semconv
Jul 21, 2026
Merged

Gate Dubbo registry server.address/server.port behind stable rpc semconv#19285
trask merged 2 commits into
open-telemetry:mainfrom
trask:dubbo-registry-server-address-stable-semconv

Conversation

@trask

@trask trask commented Jul 21, 2026

Copy link
Copy Markdown
Member

Follow-up to #17244, which changed registry-backed Dubbo client server.address/server.port unconditionally. That altered already-emitted attributes for all users by default: registry-backed consumers previously reported the resolved provider host/port, and #17244 switched server.address to the registry endpoint plus service target (registry://host:port/interface:version:group) with server.port unset.

This gates that behavior behind emitStableRpcSemconv() (otel.semconv-stability.opt-in=rpc), matching the gRPC target approach in #16161. Under the old semconv the resolved provider host/port are kept; the registry-address form is only emitted under the stable rpc opt-in. The registry capture itself is unchanged — only the emitted server.* attributes are gated.

Prototype for open-telemetry/semantic-conventions#3317.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 21, 2026

Copy link
Copy Markdown

Pull request dashboard status

Status last refreshed: 2026-07-21 13:24:22 UTC.

  • Status: Merged.

This automated status or its linked feedback items may be incorrect. If something looks wrong, report it with the result you expected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Gates registry-derived Dubbo server.* attributes behind stable RPC semantic conventions, preserving legacy provider addresses by default.

Changes:

  • Applies semantic-convention gating to client server address and port extraction.
  • Updates registry integration assertions for stable and legacy modes.

Reviewed changes

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

File Description
AbstractDubboRegistryTest.java Tests mode-specific registry attributes.
DubboClientNetworkAttributesGetter.java Gates registry target emission.

@trask
trask marked this pull request as ready for review July 21, 2026 05:10
@trask
trask requested a review from a team as a code owner July 21, 2026 05:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@trask
trask merged commit 2f06b55 into open-telemetry:main Jul 21, 2026
98 checks passed
@trask
trask deleted the dubbo-registry-server-address-stable-semconv branch July 21, 2026 13:22
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.

3 participants