Module: Datadog::Tracing::Contrib::HttpAnnotationHelper

Overview

Contains methods helpful for tracing/annotating HTTP request libraries

Instance Method Summary collapse

Instance Method Details

#service_name(hostname, configuration_options, pin = nil) ⇒ Object



8
9
10
11
12
13
# File 'lib/datadog/tracing/contrib/http_annotation_helper.rb', line 8

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