-
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
docs: add ioredis example #665
docs: add ioredis example #665
Conversation
fff6235
to
c0c64f5
Compare
Codecov Report
@@ Coverage Diff @@
## master #665 +/- ##
=========================================
- Coverage 92.61% 91% -1.61%
=========================================
Files 228 225 -3
Lines 10248 10396 +148
Branches 934 956 +22
=========================================
- Hits 9491 9461 -30
- Misses 757 935 +178
|
Nothing looks wrong to me here so I'm going to give it an approval, but in the future I think we should make the examples as simple as possible. This one has a client and server aspect to it and a lot of code not dealing specifically with |
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.
express
and axios
should be removed
I agree. This example is based off of other examples in the repo as you mention but I will adjust it according to your suggestion. |
Let's hold off as there is an inherent issue with the ioredis plugin in general as per #668 |
The example has been simplified. |
Adding the hold label since we're waiting on another issue |
ec4de16
to
aa877f4
Compare
@naseemkullah now that the bug is fixed, is this ready? |
yep! thanks. |
Signed-off-by: Naseem <[email protected]>
…etry-js into ioredis-example-2
f0720ec
to
a712024
Compare
// Initialize the OpenTelemetry APIs to use the BasicTracer bindings | ||
opentelemetry.initGlobalTracerRegistry(tracerRegistry); | ||
|
||
module.exports = opentelemetry.getTracer(); |
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.
@dyladan should this now be module.exports = opentelemetry.getTracerRegistry();
?
Should the file be renamed to tracer-registry.js
in this case?
As a side note I find this whole tracer registry/factory thing to be confusing for the end user. I wish the focus was that libs just not have broken implementations of tracers.
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.
Yes that means it becomes tracer registry.
"just don't have bugs" is not a feasible answer to the problem unfortunately.
Fortunately, most end users won't have to worry about it too much, just library developers. The only change for most end users is the name of the global object they need to create. Most users will never call any methods on the tracer registry manually.
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.
Thanks for explaining.
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.
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.
You can make a follow up PR to handle it, but you're not actually using the exported value in your index, so it shouldn't matter.
Which problem is this PR solving?
Short description of the changes