lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.16.0 vs lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.17.0

- old
+ new

@@ -71,9 +71,14 @@ cleansed_url.user = nil cleansed_url.to_s rescue URI::Error url end + + # Returns true if exporter is a valid exporter. + def valid_exporter?(exporter) + exporter && %i[export shutdown force_flush].all? { |m| exporter.respond_to?(m) } + end end end end require_relative './http/client_context'