Skip to content

Commit

Permalink
docs: correct the build instructions (#615)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
  • Loading branch information
jessitron and vmarchaud committed Aug 14, 2021
1 parent 952e6d7 commit 72b78e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/opentelemetry-browser-extension-autoinjection/README.md
Expand Up @@ -24,13 +24,13 @@ This browser extension allows you to inject [OpenTelemetry](https://opentelemetr
Run the following in your shell to download and build the extension from source:

```shell
git clone https://github.com/svrnm/opentelemetry-browser-extension
cd opentelemetry-browser-extension
git clone https://github.com/open-telemetry/opentelemetry-js-contrib.git
cd opentelemetry-js-contrib/packages/opentelemetry-browser-extension-autoinjection
npm install
npm run compile
npm run build
```

This will create a so called unpacked extension into the `build/` folder you now can load into your browser:
This will create a so-called unpacked extension into the `build/` folder you now can load into your browser:

* Open a new browser window and go to chrome://extensions
* Turn on "Developer Mode"
Expand Down Expand Up @@ -58,4 +58,4 @@ Click on `Save & Reload`, check the developer toolbar to see how spans being are

3. Firefox support is unstable, sometimes it works, sometimes not. If you have experience building extensions for firefox, please reach out.

4. The website you are targeting with this extension might have a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) (CSP) in place and block the extension from injecting javascript or block the exporters from sending spans to a collector. To work around this limitation, you need another browser extension, that allows you to disable CSP for a website.
4. The website you are targeting with this extension might have a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) (CSP) in place and block the extension from injecting javascript or block the exporters from sending spans to a collector. To work around this limitation, you need another browser extension, that allows you to disable CSP for a website.

0 comments on commit 72b78e6

Please sign in to comment.