Thanks for the quick handling of the previous issues I raised! Here is another issue I noticed:
The lesson tells you to instrument the client with this snippet:
The first problem with this is that "ext" is not imported at this point in the example (and its existence is not mentioned). Looking at the solution you can tell an import of "github.com/opentracing/opentracing-go/ext" is missing. You might want to add the equivalent of "Add some imports" as is done when instrumenting the servers further down.
Finally, when the snippet calls ext.HTTPUrl.Set(span, url) there is no url variable in scope, but it is present in the solution like so:
Maby the baseline exercise code should be updated to use that variable so you don't have to stop and figure out what "url" is when following along? Since net/url is imported it is even more confusing since you might think "url" refers to that package and not a missing variable.
I really appreciate this tutorial by the way, thanks a lot for putting it out there!
Hello again,
Thanks for the quick handling of the previous issues I raised! Here is another issue I noticed: The lesson tells you to instrument the client with this snippet:
The first problem with this is that "ext" is not imported at this point in the example (and its existence is not mentioned). Looking at the solution you can tell an import of "github.com/opentracing/opentracing-go/ext" is missing. You might want to add the equivalent of "Add some imports" as is done when instrumenting the servers further down.
Finally, when the snippet calls
ext.HTTPUrl.Set(span, url)
there is nourl
variable in scope, but it is present in the solution like so:Maby the baseline exercise code should be updated to use that variable so you don't have to stop and figure out what "url" is when following along? Since
net/url
is imported it is even more confusing since you might think "url" refers to that package and not a missing variable.I really appreciate this tutorial by the way, thanks a lot for putting it out there!