Module: Datadog::Tracing::Contrib::HttpAnnotationHelper
- Included in:
- Ethon::EasyPatch::InstanceMethods, Excon::Middleware, Faraday::Middleware, Datadog::Tracing::Contrib::HTTP::Instrumentation::InstanceMethods, Datadog::Tracing::Contrib::Httpclient::Instrumentation::InstanceMethods, Datadog::Tracing::Contrib::Httprb::Instrumentation::InstanceMethods
- Defined in:
- lib/datadog/tracing/contrib/http_annotation_helper.rb
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, , pin = nil) return hostname if [:split_by_domain] return pin[:service_name] if pin && pin[:service_name] [:service_name] end |