diff --git a/instrumentation/excon/lib/opentelemetry/instrumentation/concerns/untraced_hosts.rb b/instrumentation/excon/lib/opentelemetry/instrumentation/concerns/untraced_hosts.rb index cba3557ea..81acdd6a3 100644 --- a/instrumentation/excon/lib/opentelemetry/instrumentation/concerns/untraced_hosts.rb +++ b/instrumentation/excon/lib/opentelemetry/instrumentation/concerns/untraced_hosts.rb @@ -21,6 +21,9 @@ def self.included(klass) end end + # Checks whether the given host should be treated as untraced. + # If the current OpenTelemetry context is untraced, all hosts will be treated as untraced. + # The given host must be a String. def untraced?(host) OpenTelemetry::Common::Utilities.untraced? || untraced_host?(host) end