Skip to content

Commit

Permalink
docs: zone ctx manager can only be used with es2015 (#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Oct 26, 2020
1 parent 037764e commit e5b7de9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/opentelemetry-context-zone-peer-dep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ If you don't have your own [zone-js] please use [@opentelemetry/context-zone]

## Installation

Please note that due to an issue with `zone.js`, the `ZoneContextManager` does not work with JS code targeting `ES2017+`.
In order to use the `ZoneContextManager`, please transpile back to `ES2015`.

```bash
npm install --save @opentelemetry/context-zone-peer-dep
```
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Web Tracer currently supports one plugin for document load.
Unlike Node Tracer (`NodeTracerProvider`), the plugins needs to be initialised and passed in configuration.
The reason is to give user full control over which plugin will be bundled into web page.

You can choose to use the `ZoneContextManager` if you want to trace asynchronous operations.
You can choose to use the `ZoneContextManager` if you want to trace asynchronous operations. Please note that the `ZoneContextManager` does not work with JS code targeting `ES2017+`. In order to use the `ZoneContextManager`, please transpile back to `ES2015`.

## Installation

Expand Down

0 comments on commit e5b7de9

Please sign in to comment.