Skip to content

Commit

Permalink
Update helpers/mysql/lib/opentelemetry/helpers/mysql.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
  • Loading branch information
kaylareopelle and fbogsany authored Nov 29, 2023
1 parent 92674ae commit 337875f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/mysql/lib/opentelemetry/helpers/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MySQL

# Ignore query names that might appear in comments prepended to the
# statement.
PREPENDED_COMMENTS_REGEX = %r{/\*(?:[^/]|/[^*])*?(?:\*/|/\*.*)}m
PREPENDED_COMMENTS_REGEX = %r{(?:\/\*.*?\*\/)}m
QUERY_NAME_REGEX = Regexp.new("^\s*(?:#{PREPENDED_COMMENTS_REGEX})?\s*\\b(#{QUERY_NAMES.join('|')})\\b.*", Regexp::IGNORECASE)

# This is a span naming utility intended for use in MySQL database
Expand Down

0 comments on commit 337875f

Please sign in to comment.