Issue #, if available:
I recently ran into an issue in using xray for mysql2 through Knex . Basically Knex uses query options for first parameter ({ sql: 'sql here'}) and sanitized_query expects a sql string.
Description of changes:
Check for sql param type and use sql property if type object.
Add docs for AWS_XRAY_COLLECT_SQL_QUERIES
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: I recently ran into an issue in using xray for mysql2 through Knex . Basically Knex uses query options for first parameter (
{ sql: 'sql here'}
) and sanitized_query expects a sql string.Description of changes:
sql
property if type object.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.