Skip to content

Commit b8d5a96

Browse files
committed
Merge branch 'mysql_libs_db_collection_name' of https://github.com/hannahramadan/opentelemetry-ruby-contrib into mysql_libs_db_collection_name
2 parents d9f1975 + d6ffcdf commit b8d5a96

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)