Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced word plugin with instrumentation #2352

Merged
merged 1 commit into from
Jul 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions website_docs/getting_started/browser.md
Original file line number Diff line number Diff line change
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