Loading lib/labkit/tracing.rb +4 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ module Labkit ENV["GITLAB_TRACING_URL"] end def self.tracing_service_name ENV["GITLAB_TRACING_SERVICE_NAME"] end def self.stacktrace_operations @stacktrace_operations ||= Set.new(ENV["GITLAB_TRACING_INCLUDE_STACKTRACE"].to_s.split(",").map(&:strip)) end Loading lib/labkit/tracing/jaeger_factory.rb +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ module Labkit def self.create_tracer(service_name, options) kwargs = { service_name: service_name, service_name: Labkit::Tracing.tracing_service_name || service_name, sampler: get_sampler(options[:sampler], options[:sampler_param]), reporter: get_reporter(service_name, options[:http_endpoint], options[:udp_endpoint]), }.compact Loading Loading
lib/labkit/tracing.rb +4 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ module Labkit ENV["GITLAB_TRACING_URL"] end def self.tracing_service_name ENV["GITLAB_TRACING_SERVICE_NAME"] end def self.stacktrace_operations @stacktrace_operations ||= Set.new(ENV["GITLAB_TRACING_INCLUDE_STACKTRACE"].to_s.split(",").map(&:strip)) end Loading
lib/labkit/tracing/jaeger_factory.rb +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ module Labkit def self.create_tracer(service_name, options) kwargs = { service_name: service_name, service_name: Labkit::Tracing.tracing_service_name || service_name, sampler: get_sampler(options[:sampler], options[:sampler_param]), reporter: get_reporter(service_name, options[:http_endpoint], options[:udp_endpoint]), }.compact Loading