lib/labkit/tracing.rb in gitlab-labkit-0.0.3 vs lib/labkit/tracing.rb in gitlab-labkit-0.0.4

- old
+ new

@@ -42,12 +42,12 @@ enabled? && tracing_url_template.present? end # This will provide a link into the distributed tracing for the current trace, # if it has been captured. - def self.tracing_url + def self.tracing_url(service_name) return unless tracing_url_enabled? - tracing_url_template.to_s % { correlation_id: Labkit::Correlation::CorrelationId.current_id.to_s, service: Labkit.process_name } + format(tracing_url_template.to_s, { correlation_id: Labkit::Correlation::CorrelationId.current_id.to_s, service: service_name }) end end end