ioredis: connect
instrumentation does not report correct duration and does not report failure
#289
Labels
bug
Something isn't working
never-stale
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What version of OpenTelemetry are you using?
v0.13.0
What version of Node are you using?
12
What did you do?
If possible, provide a recipe for reproducing the error.
While there is no redis server on localhost, I run the following code:
What did you expect to see?
Expected to see spans of
connect
with an error indication (as the connect failed), and expected the duration to contain the full length of the operation.What did you see instead?
Spans are reported with CanonicalCode.OK (StatusCode.UNSET in master), and the duration only tracks the
connect
function call, and not including the time until the callback is called.The text was updated successfully, but these errors were encountered: