You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subsegments get recorded with the name postgresql://foo:***@baz.us-east-1.rds.amazonaws.com:2834/thing. Note that the password text is not present in the subsegment name (woohoo!), but it is composed of invalid characters, resulting in an error log message:
Removing Segment/Subsugment Name invalid characters from postgresql://foo:***@baz.us-east-1.rds.amazonaws.com:2834/thing
The URL is parsed and the password stripped, but the old URL is assigned to safe_url. The method ParseResult._replace returns a new ParseResult but does not modify the initial ParseResult.
Because the fix seems to be so simple, I'll put up a PR before hearing back, but please let me know if there's something I've misunderstood about this.
This was noticed when using
flask_sqlalchemy
, but I believe it affects plainSQLAlchemy
as well.Subsegments get recorded with the name
postgresql://foo:***@baz.us-east-1.rds.amazonaws.com:2834/thing
. Note that the password text is not present in the subsegment name (woohoo!), but it is composed of invalid characters, resulting in an error log message:I believe that the issue lies here:
aws-xray-sdk-python/aws_xray_sdk/ext/sqlalchemy/util/decorators.py
Lines 104 to 107 in dcb0801
The URL is parsed and the password stripped, but the old URL is assigned to
safe_url
. The methodParseResult._replace
returns a newParseResult
but does not modify the initialParseResult
.Because the fix seems to be so simple, I'll put up a PR before hearing back, but please let me know if there's something I've misunderstood about this.
Configuration:
aws-xray-sdk-python == 2.3.0
Python 3.6
The text was updated successfully, but these errors were encountered: