Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Dependency on deprecated continuation-local-storage #792

Description

@vaskevich

Please answer these questions before submitting a bug report.

What version of OpenCensus are you using?

Latest (https://github.com/census-instrumentation/opencensus-node/blob/master/packages/opencensus-core/package.json has a dependency on CLS)

What version of Node are you using?

v12

What did you do?

Using pm2 (https://pm2.keymetrics.io/), which depends on @opencensus/core internally.

What did you expect to see?

No deprecation warnings.

What did you see instead?

The following warning:

DeprecationWarning: Socket.prototype._handle is deprecated

coming from continuation-local-storage's use of async-listener, which polyfills a removed API with another deprecated API. This package should be migrated to use cls-hooked instead, which uses supported async hooks APIs.

Additional context

Migration should be trivial.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions