Skip to content

Commit d6ffcdf

Browse files
Apply suggestions from code review
Co-authored-by: Ariel Valentin <[email protected]>
1 parent 4af3e2c commit d6ffcdf

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/mysql2/lib/opentelemetry/instrumentation/mysql2/patches

1 file changed

+1
-1
lines changed

instrumentation/mysql2/lib/opentelemetry/instrumentation/mysql2/patches/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _otel_client_attributes(sql)
9797

9898
def db_sql_table_name(sql)
9999
Regexp.last_match(1) if sql =~ TABLE_NAME
100-
rescue StandardError
100+
rescue StandardError => e
101101
OpenTelemetry.handle_error(message: 'Error extracting collection name', exception: e)
102102
nil
103103
end

0 commit comments

Comments
 (0)