mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-07-01 22:30:19 +02:00
gems: update rack-tracer to version 0.8.0
Since rack-tracer now supports OpenTracing.active_span we should start using it as well and therefore do not need spanmanager gem anymore. See: Update rack-tracer to version 0.8.0 (#16)
This commit is contained in:
@ -28,13 +28,14 @@ module Dyndnsd
|
||||
end
|
||||
|
||||
def self.span(operation, &block)
|
||||
span = OpenTracing.start_span(operation)
|
||||
scope = OpenTracing.start_active_span(operation)
|
||||
span = scope.span
|
||||
span.set_tag('component', 'dyndnsd')
|
||||
span.set_tag('span.kind', 'server')
|
||||
begin
|
||||
block.call(span)
|
||||
ensure
|
||||
span.finish
|
||||
scope.close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user