Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
kong/plugins/zipkin/opentracing.lua: Update error messages now that n…
Browse files Browse the repository at this point in the history
…ew_tracer doesn't take self
  • Loading branch information
james-callahan committed Oct 18, 2018
1 parent 62645af commit ee68e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/zipkin/opentracing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ end
function OpenTracingHandler:get_tracer(conf)
local tracer = self.conf_to_tracer[conf]
if tracer == nil then
assert(self.new_tracer, "derived class must implement :new_tracer()")
assert(self.new_tracer, "derived class must implement .new_tracer()")
tracer = self.new_tracer(conf)
assert(type(tracer) == "table", ":new_tracer() must return an opentracing tracer object")
assert(type(tracer) == "table", ".new_tracer() must return an opentracing tracer object")
self.conf_to_tracer[conf] = tracer
end
return tracer
Expand Down

0 comments on commit ee68e53

Please sign in to comment.