Skip to content

Commit

Permalink
replaced word plugin with instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
niko-achilles committed Jul 15, 2021
1 parent 68454a4 commit 2f98ed7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website_docs/getting_started/browser.md
Expand Up @@ -18,7 +18,7 @@ Copy the following file into an empty directory and call it `index.html`.
<html lang="en">
<head>
<meta charset="utf-8">
<title>Document Load Plugin Example</title>
<title>Document Load Instrumentation Example</title>
<base href="/">
<!--
https://www.w3.org/TR/trace-context/
Expand All @@ -33,14 +33,14 @@ Copy the following file into an empty directory and call it `index.html`.
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
Example of using Web Tracer with document load plugin with console exporter and collector exporter
Example of using Web Tracer with document load instrumentation with console exporter and collector exporter
</body>
</html>
```

## Installation

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

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

## Creating a Tracer Provider

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

```javascript
import { WebTracerProvider } from '@opentelemetry/web';
Expand All @@ -74,7 +74,7 @@ provider.register({
contextManager: new ZoneContextManager(),
});

// Registering instrumentations / plugins
// Registering instrumentations
registerInstrumentations({
instrumentations: [
new DocumentLoadInstrumentation(),
Expand Down Expand Up @@ -113,7 +113,7 @@ provider.register({
contextManager: new ZoneContextManager(),
});

// Registering instrumentations / plugins
// Registering instrumentations
registerInstrumentations({
instrumentations: [
new DocumentLoadInstrumentation(),
Expand Down

0 comments on commit 2f98ed7

Please sign in to comment.