Skip to content

Commit

Permalink
Use correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Aug 26, 2024
1 parent a23b954 commit f099af3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _otel_client_attributes(sql)
end

def collection_name(sql)
Regexp.last_match[1] if SQL =~ TABLE_NAME
Regexp.last_match[1] if sql =~ TABLE_NAME
rescue StandardError
nil
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def validated_operation(operation)
end

def collection_name(text)
Regexp.last_match[1] if SQL =~ TABLE_NAME
Regexp.last_match[1] if text =~ TABLE_NAME
rescue StandardError
nil
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def client_attributes(sql = nil)
end

def collection_name(sql)
Regexp.last_match[1] if SQL =~ TABLE_NAME
Regexp.last_match[1] if sql =~ TABLE_NAME
rescue StandardError
nil
end
Expand Down

0 comments on commit f099af3

Please sign in to comment.