-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(web-example): Added a README for the existing example (#562)
* Added a README for the existing example * Fixed typo * A few updates to the README * A few updates to the README * Changed the link to point to the instead of tracing * Update examples/tracer-web/README.md Co-Authored-By: Daniel Dyla <[email protected]> * Updated tracing to web
- Loading branch information
1 parent
d948f51
commit b048bb9
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Overview | ||
|
||
This example shows how to use [@opentelemetry/web](https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-web) to instrument your JavaScript code running in the browser. | ||
This example uses the `ConsoleSpanExporter()` to export spans to the browser console output. | ||
|
||
## Installation | ||
|
||
```sh | ||
$ # from this directory | ||
$ npm install | ||
``` | ||
|
||
## Run the Application | ||
|
||
```sh | ||
$ # from this directory | ||
$ npm start | ||
``` | ||
|
||
By default, the application will run on port `8090`. | ||
|
||
To see the results, open the browser at <http://localhost:8090/> and make sure you have the browser console open. The application is using the `ConsoleSpanExporter` and will post the created spans to the browser console. | ||
|
||
The screen will look as follows: | ||
|
||
 | ||
|
||
## Useful links | ||
|
||
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/> | ||
- For more information on web tracing, visit: <https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-web> | ||
|
||
## LICENSE | ||
|
||
Apache License 2.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.