lib/opentelemetry/instrumentation/trilogy/patches/client.rb in opentelemetry-instrumentation-trilogy-0.56.2 vs lib/opentelemetry/instrumentation/trilogy/patches/client.rb in opentelemetry-instrumentation-trilogy-0.56.3
- old
+ new
@@ -107,10 +107,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