Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubbo: don't create spans for calls inside the same jvm #7761

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Feb 8, 2023

Resolves #7520
Invoking a dubbo service, like in https://github.com/zewade/opentelemetry-dubbo-demo/blob/d7e2417ae787808dbfb43747d586b91a1b29ecec/demo-business-provider/src/main/java/cn/zewade/business/controller/BusinessController.java#L20, creates a client span (and a server span on the receiving end). If the caller and service are on the jvm this call doesn't go through remoting and will be handled with regular java calls. Now when the initially called service calls another service, like in https://github.com/zewade/opentelemetry-dubbo-demo/blob/main/demo-business-provider/src/main/java/cn/zewade/business/dubbo/BusinessDubboServiceImpl.java#L25, that second call will also attempt to create a client span. This second client span will be suppressed which will also suppress context propagation.

@laurit laurit requested a review from a team as a code owner February 8, 2023 07:02
@laurit laurit merged commit f887fb8 into open-telemetry:main Feb 9, 2023
@laurit laurit deleted the dubbo-ignore-internal branch February 9, 2023 06:46
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.

The trace will break when consumering apache dubbo methods continuously.
2 participants