-
Notifications
You must be signed in to change notification settings - Fork 146
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
Feature request: Add support for captureMySQL #749
Comments
Hi @cortexcompiler, thank you for the feature request. At the moment Tracer depends only on The X-Ray SDK also vends separately Since not every customer will be querying Mysql nor Postgres with their functions I would like to explore the possibility of Tracer supporting these features without having to include these dependencies in the library. Ideally this would mean that customers interested in tracing these types of operations would be able to add the extra dependency and pass either their own provider (option 1 that you suggest) or the This type of mechanism requires a bit of thought so we'll need a bit of time to investigate options and consider the feature request. We are currently focused on bringing the current feature set to general availability and production ready worthiness. After this is done we'll re evaluate this (and other feature requests) to decide our next steps based on demand. |
Hi we are also interested in this feature - #2027 |
Hi everyone - just wanted to provide a quick update on this issue. I see that the issue is getting some traction in terms of engagement. For the remainder of this year the team is focused on other areas, but we are evaluating making changes to how the Tracer utility works internally next year - so this topic might be included into that discussion. We'll revisit this issue in a few months to see if anything has changed or provide updates. |
Description of the feature request
Add
captureMySQL
support to the Tracer or add it to the ProviderServiceInterfaceProblem statement
As a user I would like to trace MySQL queries leveraging the powertools Tracer.
Summary of the feature
I appreciate the encapsulation of X-Ray that is enabled through Tracer and would like to use it more fully. Rather than using
captureMySQL
fromaws-xray-sdk-mysql
, I would prefer to do one of the following (in order of preference):tracer.captureMySQL(mysqlLib)
similar to patching-aws-sdk-clientstracer.provider.captureMySQL()
as is eluded to in the escape-hatch-mechanism that refers to SQL queries tracingCode examples
Current approach
Options
Benefits for you and the wider AWS community
Uniformly using the powertools Tracer abstraction rather than directly using X-Ray. This would allow users to benefit from the continued improvements added to the powertools without the need to modify tracing code.
Describe alternatives you've considered
Continue to use the x-ray sdk directly.
Additional context
Related issues, RFCs
The text was updated successfully, but these errors were encountered: