lib/opentelemetry/instrumentation/mongo/instrumentation.rb in opentelemetry-instrumentation-mongo-0.18.1 vs lib/opentelemetry/instrumentation/mongo/instrumentation.rb in opentelemetry-instrumentation-mongo-0.18.2
- old
+ new
@@ -23,9 +23,10 @@
compatible do
gem_version >= MINIMUM_VERSION
end
option :peer_service, default: nil, validate: :string
+ option :db_statement, default: :include, validate: ->(opt) { %I[omit include].include?(opt) }
private
def gem_version
Gem.loaded_specs['mongo']&.version