Skip to content

Commit f9ab4a3

Browse files
authoredJul 17, 2021
replaced word plugin with instrumentation (#2352)
1 parent 68454a4 commit f9ab4a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎website_docs/getting_started/browser.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Copy the following file into an empty directory and call it `index.html`.
1818
<html lang="en">
1919
<head>
2020
<meta charset="utf-8">
21-
<title>Document Load Plugin Example</title>
21+
<title>Document Load Instrumentation Example</title>
2222
<base href="/">
2323
<!--
2424
https://www.w3.org/TR/trace-context/
@@ -33,14 +33,14 @@ Copy the following file into an empty directory and call it `index.html`.
3333
<meta name="viewport" content="width=device-width, initial-scale=1">
3434
</head>
3535
<body>
36-
Example of using Web Tracer with document load plugin with console exporter and collector exporter
36+
Example of using Web Tracer with document load instrumentation with console exporter and collector exporter
3737
</body>
3838
</html>
3939
```
4040

4141
## Installation
4242

43-
To create traces in the browser, you will need `@opentelemetry/web`, and the plugin `@opentelemetry/plugin-document-load`:
43+
To create traces in the browser, you will need `@opentelemetry/web`, and the instrumentation `@opentelemetry/instrumentation-document-load`:
4444

4545
```shell
4646
npm init -y
@@ -59,7 +59,7 @@ We will add some code that will trace the document load timings and output those
5959

6060
## Creating a Tracer Provider
6161

62-
Add the following code to the `document-load.js` to create a tracer provider, which brings the plugin to trace document load:
62+
Add the following code to the `document-load.js` to create a tracer provider, which brings the instrumentaion to trace document load:
6363

6464
```javascript
6565
import { WebTracerProvider } from '@opentelemetry/web';
@@ -74,7 +74,7 @@ provider.register({
7474
contextManager: new ZoneContextManager(),
7575
});
7676

77-
// Registering instrumentations / plugins
77+
// Registering instrumentations
7878
registerInstrumentations({
7979
instrumentations: [
8080
new DocumentLoadInstrumentation(),
@@ -113,7 +113,7 @@ provider.register({
113113
contextManager: new ZoneContextManager(),
114114
});
115115

116-
// Registering instrumentations / plugins
116+
// Registering instrumentations
117117
registerInstrumentations({
118118
instrumentations: [
119119
new DocumentLoadInstrumentation(),

0 commit comments

Comments
 (0)
Please sign in to comment.