Commit eedb68a0 authored by Igor's avatar Igor
Browse files

switch to url param that can override service_name

parent 4d45d8f8
Loading
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -28,10 +28,6 @@ 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
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ module Labkit
      FLUSH_INTERVAL = 5

      def self.create_tracer(service_name, options)
        service_name = options[:service_name] if options[:service_name]

        kwargs = {
          service_name: service_name,
          sampler: get_sampler(options[:sampler], options[:sampler_param]),