-
Notifications
You must be signed in to change notification settings - Fork 791
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
Convert more decorators to tracers #1275
Conversation
`ServletContextInstrumentation` instruments `javax.servlet.ServletContext.getRequestDispatcher` and | ||
`javax.servlet.ServletContext.getNamedDispatcher`. The only job of this instrumentation is to | ||
preserve the input parameter of those methods and to make that available for `RequestDispatcherInstrumentation` | ||
described above. The latter uses that name for `dispatcher.target` span attribute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄👍
Span span = | ||
TRACER.spanBuilder(SpringSchedulingDecorator.DECORATE.spanNameOnRun(runnable)).startSpan(); | ||
SpringSchedulingDecorator.DECORATE.afterStart(span); | ||
Span span = TRACER.startSpan(TRACER.spanNameOnRun(runnable), Kind.INTERNAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Kind.SERVER
since it's a "root" span?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was INTERNAL
before, I haven't changed that. But you have a point... I don' know :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think scheduling tasks are really server (no chance of ever being connected to a client). Seems ok to me.
Span span = | ||
TRACER.spanBuilder(SpringSchedulingDecorator.DECORATE.spanNameOnRun(runnable)).startSpan(); | ||
SpringSchedulingDecorator.DECORATE.afterStart(span); | ||
Span span = TRACER.startSpan(TRACER.spanNameOnRun(runnable), Kind.INTERNAL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think scheduling tasks are really server (no chance of ever being connected to a client). Seems ok to me.
No description provided.