lib/opentelemetry/instrumentation/mysql2/patches/client.rb in opentelemetry-instrumentation-mysql2-0.24.2 vs lib/opentelemetry/instrumentation/mysql2/patches/client.rb in opentelemetry-instrumentation-mysql2-0.24.3

- old
+ new

@@ -100,10 +100,10 @@ # literals. In such a case, we'll replace the entire query with a # placeholder. %r{'|"|\/\*|\*\/}.match(obfuscated) end - def database_span_name(sql) # rubocop:disable Metrics/CyclomaticComplexity + def database_span_name(sql) case config[:span_name] when :statement_type extract_statement_type(sql) when :db_name database_name