lib/opentelemetry/instrumentation/net/http/instrumentation.rb in opentelemetry-instrumentation-net_http-0.20.0 vs lib/opentelemetry/instrumentation/net/http/instrumentation.rb in opentelemetry-instrumentation-net_http-0.21.0

- old
+ new

@@ -18,9 +18,17 @@ present do defined?(::Net::HTTP) end + ## Supported configuration keys for the install config hash: + # + # untraced_hosts: if a request's address matches any of the `String` + # or `Regexp` in this array, the instrumentation will not record a + # `kind = :client` representing the request and will not propagate + # context in the request. + option :untraced_hosts, default: [], validate: :array + private def require_dependencies require_relative 'patches/instrumentation' end