From 64011e8ddac12937ac4aa358970c5848d75bd10e Mon Sep 17 00:00:00 2001 From: "Miguel D. Salcedo" Date: Wed, 22 Nov 2023 16:36:45 +0000 Subject: [PATCH] Add doc comment for untraced? in the concern --- .../opentelemetry/instrumentation/concerns/untraced_hosts.rb | 3 +++ 1 file changed, 3 insertions(+) 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