-
Notifications
You must be signed in to change notification settings - Fork 821
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
[ioredis] No traces #668
Comments
Even if a plugin starts a span with no parent (e.g. a root span) it should generate a trace. I'll try to reproduce this monday morning. |
@naseemkullah i'm assigning both of us to this since you wrote the plugin. |
Is this happens with |
Yep! |
@naseemkullah the "supported versions" specifier is |
At first glance, looks like supported version for |
@dyladan you beat me by few seconds :) |
Thanks for pointing this out. I'm not sure how to test for version 3.x.x and 4.x.x I've installed versions 2.x.x, 3.x.x and 4.x.x in the plugin folder itself and ran Furthermore, I tried running the example in the ioredis example PR with ioredis 2.x.x but got:
which I assume has something to do with the redis types package in the plugin? We should probably remove ^2.0.0 as a supported version, I guess? Finally, I do not know how to test an updated version of the package with versions |
In any case #671 created |
The tests pass because they do not depend on the plugin loader. The plugin loader is what is preventing the plugin from being loaded when the version specifier doesn't match in a regular application. In the tests, you explicitly I would install ioredis version 3.x.x and 4.x.x in the example and make sure it works as expected, but it seems like the current plugin is actually targeting 4.x.x not 2.x.x anyway. |
Ah I see, thanks for explaining.
I've installed 3.x.x and 4.x.x in the example but the plugin does not patch as it does with 2.x.x, which errors out with |
Furthermore, how can I have the example override the ioredis-plugin in npm, with one in my local repo (where I edit the supportedVersions) ? I tried running |
You don't use
|
Thanks @dyladan , As for:
which appears regardless of ioredis version used by main application, I've tried adding |
I think it is probably a simple matter of using the |
I am changing the
|
This should be fixed by #714 when merged. |
Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
0.3.2
What version of Node are you using?
12.x.x
What did you do?
What did you expect to see?
traces in Jaeger
What did you see instead?
Nothing
Additional context
output of command:
Does this have anything to do with no parentSpan existing when redis is called/not called within an http route?
The text was updated successfully, but these errors were encountered: