1
0
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:
depfu[bot]
2018-07-12 20:36:01 +00:00
committed by Christian Nicolai
parent 4f3e591f13
commit bd7c786c9c
3 changed files with 4 additions and 7 deletions

View File

@ -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