-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add enable_commenter
support to mysql
#1387
Comments
@clesleycode can I give a try on this ?. |
Could trace context uniqueness in comments become an issue if mysql-connector supports prepared statements?: https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursorprepared.html For example: if a parameterized statement is created then used for 3 queries (3 separate requests), then MySQL server may perform a A similar concern was brought up for Otel Java: open-telemetry/opentelemetry-sqlcommenter#32 |
A correction to my previous comment: the number of spans isn't the issue! I've experimented more with MySQL server-side prepared statements via mysql-connector-python and it might be that enabling sqlcommenter in instrumentation would have the same resource concerns are Marginalia and ActiveRecord: /~https://github.com/basecamp/marginalia/blob/master/README.md#prepared-statements For example, I set up an application (db client) to use mysql-connector's
After queries, the MySQL general logs included these:
Since there is a |
Before opening a feature request against this repo, consider whether the feature should/could be implemented in the other OpenTelemetry client libraries. If so, please open an issue on opentelemetry-specification first.
Is your feature request related to a problem? Describe the solution you'd like.
Other SQL packages (like psycopg2) support SQL commenters for adding additional context -- I'd like to see this feature added to
mysql
Describe alternatives you've considered
Which alternative solutions or features have you considered?
I didn't consider other alternatives since this feature already exists in other modules!
Additional context
Add any other context about the feature request here.
I think it'd be a simple change since it's already supported elsewhere. I have a potential draft PR here.
The text was updated successfully, but these errors were encountered: