Sha256: a35e1a5cad2d6696153d23af1051b277f46341b0329535e748347a6e84d33cd3

Contents?: true

Size: 486 Bytes

Versions: 32

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      # Contains methods helpful for tracing/annotating HTTP request libraries
      module HttpAnnotationHelper
        def service_name(hostname, configuration_options, pin = nil)
          return hostname if configuration_options[:split_by_domain]
          return pin[:service_name] if pin && pin[:service_name]

          configuration_options[:service_name]
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
datadog-2.7.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.6.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.5.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.4.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.3.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.2.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.23.3 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.1.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.0.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/http_annotation_helper.rb