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

Migrate RMI instrumentation to Instrumenter API #4579

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

mateuszrzeszutek
Copy link
Member

Part of #2713

Comment on lines +51 to +55
// TODO replace with client span check - this is a bit different condition though, can we
// remove it?
if (!Java8BytecodeBridge.spanFromContext(parentContext).getSpanContext().isValid()) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

looks like tests pass without it. +1 to remove 🤷‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

But this is very different condition, no? I read it that we don't want to create top level spans for rmi calls. Nothing in our instrumenters does such check.

Comment on lines +51 to +55
// TODO replace with client span check - this is a bit different condition though, can we
// remove it?
if (!Java8BytecodeBridge.spanFromContext(parentContext).getSpanContext().isValid()) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

But this is very different condition, no? I read it that we don't want to create top level spans for rmi calls. Nothing in our instrumenters does such check.

@trask trask merged commit a9ed1ae into open-telemetry:main Nov 4, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the rmi-instrumenter branch November 4, 2021 15:55
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
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