Skip to content

ioredis: connect instrumentation does not report correct duration and does not report failure #289

Open
@blumamir

Description

@blumamir

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:

const Redis = require("ioredis");
const redis = new Redis();

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnever-stalepriority:p2Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions