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 span for jax-rs representing controller execution #435

Merged
merged 2 commits into from Aug 15, 2018

Conversation

tylerbenson
Copy link
Contributor

@tylerbenson tylerbenson commented Aug 10, 2018

Also add additional span.origin.type tags for better visibility.

Similar concept as #430, but for jax-rs.

#305

Also add additional `span.origin.type` tags for better visibility.
Might be slightly redundant given `jsp.requestURL` but consistent with other instrumentation.
@tylerbenson tylerbenson changed the base branch from tyler/spring-controllers to master August 10, 2018 02:29
@tylerbenson tylerbenson added this to the 0.13.0 milestone Aug 13, 2018

// Now create a span representing the method execution.

final Class<?> clazz = method.getDeclaringClass();
Copy link
Contributor

Choose a reason for hiding this comment

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

If this expected to be a 'declaring class' - is seems like it would be possible for clients to have some sort of a 'parent' class where methods are defined and multiple child classes that actually implement things. Having parent class in spans may be confusing. Would it make sense to use actual object's class name here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the same behavior that @Trace has. Perhaps that should be changed as well? Maybe we need better tests around this? (I'd suggest that be a separate task/pr...)

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good. I would appreciate if you could create a task for that, otherwise PR looks good.
Thanks!

@tylerbenson tylerbenson merged commit 2893eb6 into master Aug 15, 2018
@tylerbenson tylerbenson deleted the tyler/jax-rs-improvements branch August 16, 2018 00:03
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.

None yet

2 participants