Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Nov 26, 2024
1 parent 880c0f7 commit 94bf04a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,11 @@ def cursor(self, *args, **kwargs):

# If a mysql-connector cursor was created with prepared=True,
# then MySQL statements will be prepared and executed natively.
# 1:1 sqlcomment and span correlation in instrumentation would
# break, so sqlcomment is not supported for this use case.
# Adding sqlcommenting would introduce a severe performance
# penalty by repeating `Prepare` of statements by mysql-connector
# that are made unique by traceparent in sqlcomment. Therefore,
# sqlcomment is not supported for this use case. It is not an
# issue if prepared=False.
# This is here because wrapped cursor is created when application
# side creates cursor. After that, the instrumentor knows what
# kind of cursor was initialized.
Expand Down

0 comments on commit 94bf04a

Please sign in to comment.