@@ -18,7 +18,7 @@ Copy the following file into an empty directory and call it `index.html`.
18
18
<html lang =" en" >
19
19
<head >
20
20
<meta charset =" utf-8" >
21
- <title >Document Load Plugin Example</title >
21
+ <title >Document Load Instrumentation Example</title >
22
22
<base href =" /" >
23
23
<!--
24
24
https://www.w3.org/TR/trace-context/
@@ -33,14 +33,14 @@ Copy the following file into an empty directory and call it `index.html`.
33
33
<meta name =" viewport" content =" width=device-width, initial-scale=1" >
34
34
</head >
35
35
<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
37
37
</body >
38
38
</html >
39
39
```
40
40
41
41
## Installation
42
42
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 ` :
44
44
45
45
``` shell
46
46
npm init -y
@@ -59,7 +59,7 @@ We will add some code that will trace the document load timings and output those
59
59
60
60
## Creating a Tracer Provider
61
61
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:
63
63
64
64
``` javascript
65
65
import { WebTracerProvider } from ' @opentelemetry/web' ;
@@ -74,7 +74,7 @@ provider.register({
74
74
contextManager: new ZoneContextManager (),
75
75
});
76
76
77
- // Registering instrumentations / plugins
77
+ // Registering instrumentations
78
78
registerInstrumentations ({
79
79
instrumentations: [
80
80
new DocumentLoadInstrumentation (),
@@ -113,7 +113,7 @@ provider.register({
113
113
contextManager: new ZoneContextManager (),
114
114
});
115
115
116
- // Registering instrumentations / plugins
116
+ // Registering instrumentations
117
117
registerInstrumentations ({
118
118
instrumentations: [
119
119
new DocumentLoadInstrumentation (),
0 commit comments