Sha256: e7352faa1db0b45e2b37b1ea12082783390dc7e8f42b42b822a64253ff51d964

Contents?: true

Size: 470 Bytes

Versions: 16

Compression:

Stored size: 470 Bytes

Contents

# typed: 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

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.8.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.7.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.5.2 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.5.1 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.5.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.4.2 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.4.1 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.4.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.3.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.2.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.1.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.0.0 lib/datadog/tracing/contrib/http_annotation_helper.rb
ddtrace-1.0.0.beta2 lib/datadog/tracing/contrib/http_annotation_helper.rb