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

Convert more decorators to tracers #1275

Merged
merged 3 commits into from
Sep 29, 2020

Conversation

iNikem
Copy link
Contributor

@iNikem iNikem commented Sep 28, 2020

No description provided.

Comment on lines -95 to -98
`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.
Copy link
Member

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);
Copy link
Member

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?

Copy link
Contributor Author

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 :)

Copy link
Contributor

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);
Copy link
Contributor

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.

@iNikem iNikem merged commit 7b1b399 into open-telemetry:master Sep 29, 2020
@iNikem iNikem deleted the decorators-tracers branch September 29, 2020 06:41
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

3 participants