Skip to content
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

module/apmredigo: introduce redigo instrumentation #248

Merged
merged 1 commit into from
Oct 2, 2018
Merged

Conversation

axw
Copy link
Member

@axw axw commented Oct 1, 2018

We introduce module/apmredigo, which provides
top-level function for calling redis.Conn.Do
with a context, a la ctxhttp.Do. apmredigo also
provides a function (ContextConn) for binding a
redis.Conn to a given context, diverting Do calls
to the aforementioned Do-with-context function.

Send and Receive are not instrumented. For now,
spans should be created for the higher-level
operations in which they are used (pub/sub,
transactions, etc.)

Closes #35

We introduce module/apmredigo, which provides
top-level function for calling redis.Conn.Do
with a context, a la ctxhttp.Do. apmredigo also
provides a function (Wrap) for wrapping a redis.Conn,
diverting Do calls to the aforementioned Do-with-context
function. A Conn can be associated with a context
using the Conn.WithContext method.

Send and Receive are not instrumented. For now,
spans should be created for the higher-level
operations in which they are used (pub/sub,
transactions, etc.)
@codecov-io
Copy link

codecov-io commented Oct 1, 2018

Codecov Report

Merging #248 into v2 will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2     #248      +/-   ##
==========================================
+ Coverage   80.67%   80.71%   +0.03%     
==========================================
  Files          91       92       +1     
  Lines        5382     5413      +31     
==========================================
+ Hits         4342     4369      +27     
- Misses        831      836       +5     
+ Partials      209      208       -1
Impacted Files Coverage Δ
module/apmredigo/conn.go 100% <100%> (ø)
internal/fastjson/writer.go 68.83% <0%> (-2.6%) ⬇️
model/marshal_fastjson.go 85.89% <0%> (-0.33%) ⬇️

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 826bc5b...68c9eaf. Read the comment docs.

@axw axw merged commit dd7271f into elastic:v2 Oct 2, 2018
@axw axw deleted the v2-redis branch October 2, 2018 04:14
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.

None yet

2 participants