open-telemetry / open-telemetry/opentelemetry-java-instrumentation
Unable to query the expected remoteAddress in the Dubbo instrumentation for certain versions.
@steverao is already working on this.
Since Apr 28, 2025.
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1.2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 228
Description
Describe the bug
In the Dubbo instrumentation, I identified a compatibility issue with context.getRemoteAddress() in Dubbo versions 3.0.x and 3.1.x. In these versions, context.getRemoteAddress() returns null, which prevents the correct value from being retrieved in other contexts. This is a bug in Dubbo; for more details, please refer to issue.
Steps to reproduce
In above versions of Dubbo, can't get expected remoteAddress by https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/7364927e510004356acd5d1f17c95daf17e16f89/instrumentation/apache-dubbo-2.7/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/DubboRequest.java#L36
Expected behavior
In above versions of Dubbo, return corrected remoteAddress by https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/7364927e510004356acd5d1f17c95daf17e16f89/instrumentation/apache-dubbo-2.7/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/DubboRequest.java#L36
Actual behavior
In above versions of Dubbo, return null by https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/7364927e510004356acd5d1f17c95daf17e16f89/instrumentation/apache-dubbo-2.7/library-autoconfigure/src/main/java/io/opentelemetry/instrumentation/apachedubbo/v2_7/DubboRequest.java#L36
Javaagent or library instrumentation version
2.15.0
Environment
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.