-
Notifications
You must be signed in to change notification settings - Fork 805
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
docs: Add ioredis to instrumentation list #558
Conversation
350b8cc
to
82549f8
Compare
@naseemkullah I will take a look at this. Typically that particular failure is a sign that the span is not properly created. Often it is because it is not yet ended. |
Much appreciated @dyladan |
I'm going to take this to Gitter probably, but does one run
|
@naseemkullah no docs-test is typically only run in CI. It just makes sure there are no broken links before it is published. That said, they should be able to run locally so I'll take a look. |
82549f8
to
5194ce1
Compare
ok thanks. david-dm.org links seems to be down e.g.: https://david-dm.org/open-telemetry/opentelemetry-js/dev-status.svg?path=packages/opentelemetry-types |
@naseemkullah please try to avoid changing history on branches you've already pushed. it makes tracking changes harder |
My apologies @dyladan |
Pleas disregard this. My mistake, it works locally. |
Codecov Report
@@ Coverage Diff @@
## master #558 +/- ##
==========================================
- Coverage 91.38% 91.37% -0.01%
==========================================
Files 190 192 +2
Lines 9655 9905 +250
Branches 879 892 +13
==========================================
+ Hits 8823 9051 +228
- Misses 832 854 +22
|
/cc @vmarchaud (who wrote the original module), it would be awesome if you can review this. |
At least we should document (README) this behavior/limitations instead of throwing it up in the air. WDYT? |
@dyladan I personally prefer having a quite simple first implementation and then iterate on it with feedback from users |
Didn't mean to sound flippant about it. Definitely limitations should be documented. I just meant that this is to the point where I think it is mergeable and we can iterate on it as we go. The pub/sub thing is a little different since it isn't a typical request/response rpc model so decisions need to be made about how we should trace it in a general case, not just redis. @naseemkullah if tracing |
78ed772
to
2c9217c
Compare
@dyladan As it stands, creating a client traces an opentelemetry-js/packages/opentelemetry-plugin-ioredis/test/ioredis.test.ts Lines 98 to 115 in b5f616f
I will look into getting a proper span for |
Tracing But there is a lot of duplicated code between |
I don't see any issue with this minor duplication |
@naseemkullah what currently happens when you call subscribe? Does it create a short span just for the time it takes to set up the subscription? I assume for publish the span works as you would expect. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mayurkale22 I think this is ready for merging now. |
Which problem is this PR solving?
Short description of the changes