Skip to content

Conversation

@kolanos
Copy link
Contributor

@kolanos kolanos commented Aug 1, 2019

Closes #342

@codecov
Copy link

codecov bot commented Aug 1, 2019

Codecov Report

Merging #343 into master will increase coverage by 1.04%.
The diff coverage is 89.1%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #343      +/-   ##
==========================================
+ Coverage   84.11%   85.16%   +1.04%     
==========================================
  Files          37       38       +1     
  Lines        1429     1476      +47     
==========================================
+ Hits         1202     1257      +55     
+ Misses        227      219       -8
Impacted Files Coverage Δ
iopipe/report.py 98.59% <100%> (+0.02%) ⬆️
iopipe/contrib/trace/plugin.py 100% <100%> (ø) ⬆️
iopipe/contrib/trace/auto_db.py 84.9% <84.9%> (ø)
iopipe/contrib/trace/marker.py 96.66% <88.88%> (-1.38%) ⬇️
iopipe/contrib/trace/auto_http.py 84.53% <93.33%> (+6.85%) ⬆️
iopipe/agent.py 91.21% <0%> (+3.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b35299b...949bd88. Read the comment docs.

@kolanos kolanos changed the title WIP: Redis Database Auto Tracing Redis Database Auto Tracing Aug 2, 2019
@kolanos kolanos self-assigned this Aug 2, 2019
@kolanos kolanos requested a review from mrickard August 2, 2019 22:00
key=ensure_utf8(key),
hostname=ensure_utf8(connection.host),
port=ensure_utf8(connection.port),
connectionName=None,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this, I'd assume that named connections aren't supported by python's redis client. (No problem if it isn't.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see any support for it in the client. Unless this is referring to whether the connection is a pool or not?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially wrote it to take advantage of the way ioredis.js allows multiple user-defined connections that users can name with arbitrary string values. Other modules don't necessarily support that, which isn't a deal-stopper, but I could see users appreciating the convenience of seeing named connections if they've been able to define them.

Copy link

@mrickard mrickard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, it looks as though the py 2.7 environment is presenting a problem.


entry = trace._asdict()
entry["type"] = entry.pop("entryType")
entry["dbType"] = db_type
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know this will be "Redis" at the time this is invoked? In the JS modules, I've had to set the string in our code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it gets set by collect_redis_metrics in the auto_db module.

@kolanos kolanos requested a review from mrickard August 5, 2019 19:20
Copy link

@mrickard mrickard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kolanos kolanos merged commit becd833 into iopipe:master Aug 5, 2019
@kolanos kolanos deleted the issue/342 branch August 5, 2019 19:42
@kolanos kolanos restored the issue/342 branch August 6, 2019 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redis Database Auto Tracing

2 participants