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

Add support for GWT #2652

Merged
merged 3 commits into from
Mar 29, 2021
Merged

Add support for GWT #2652

merged 3 commits into from
Mar 29, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Mar 29, 2021

Add span around java method called from javascript.

Copy link
Contributor

@iNikem iNikem left a comment

Choose a reason for hiding this comment

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

Anything we can do for SERVER span name?

Comment on lines 61 to 64
.and(takesArgument(0, named(Object.class.getName())))
.and(takesArgument(1, named(Method.class.getName())))
.and(takesArgument(3, named("com.google.gwt.user.server.rpc.SerializationPolicy")))
.and(takesArgument(4, named(int.class.getName()))),
Copy link
Member

Choose a reason for hiding this comment

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

There's no need for named() matcher when referencing standard Java types:

Suggested change
.and(takesArgument(0, named(Object.class.getName())))
.and(takesArgument(1, named(Method.class.getName())))
.and(takesArgument(3, named("com.google.gwt.user.server.rpc.SerializationPolicy")))
.and(takesArgument(4, named(int.class.getName()))),
.and(takesArgument(0, Object.class))
.and(takesArgument(1, Method.class))
.and(takesArgument(3, named("com.google.gwt.user.server.rpc.SerializationPolicy")))
.and(takesArgument(4, int.class)),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, didn't know that. Should be fixed now.

@iNikem iNikem merged commit 3c11613 into open-telemetry:main Mar 29, 2021
@laurit laurit deleted the gwt branch March 29, 2021 17:33
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