-
-
Notifications
You must be signed in to change notification settings - Fork 407
add lesson05 for okhttp extra credit #50
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks, looks good. A few minor comments.
java/src/main/java/lesson05/README.md
is not needed, right?
@@ -0,0 +1,23 @@ | |||
# Lesson 5 - Using Existing Open Source Instrumentation |
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 prefer not to call this 'lesson05'. In all tutorials this is called 'extracredit, and there already exists a package for that, with a readme: https://github.com/yurishkuro/opentracing-tutorial/tree/master/java/src/main/java/extracredit
You can add everything there.
|
||
@GET | ||
public String format(@QueryParam("helloStr") String helloStr, @Context HttpHeaders httpHeaders) { | ||
try (Scope scope = Tracing.startServerSpan(tracer, httpHeaders, "publish")) { |
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.
If you really want to implement the fill solution for the extra credit, then this should also use the opentracing-contrib library for Dropwizard. The point of extracredit is to not do instrumentation manually.
add okhttp extra credit