1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-08-07 22:33:55 +02:00

tracing: migrate from OpenTracing to OpenTelemetry

- still uses Jaeger client (`AgentExporter`) and supports similar configuration except host + port which can be done via https://github.com/open-telemetry/opentelemetry-ruby/tree/main/exporter/jaeger#how-can-i-configure-the-jaeger-exporter
This commit is contained in:
cn
2021-05-28 11:15:14 +02:00
committed by Christian Nicolai
parent fc0fe3c6d5
commit fe2ef47675
7 changed files with 50 additions and 45 deletions

View File

@@ -18,7 +18,7 @@ module Dyndnsd
return if !db.changed?
Helper.span('updater_update') do |span|
span.set_tag('dyndnsd.updater.name', self.class.name&.split('::')&.last || 'None')
span.set_attribute('dyndnsd.updater.name', self.class.name&.split('::')&.last || 'None')
# write zone file in bind syntax
File.open(@zone_file, 'w') { |f| f.write(@generator.generate(db)) }