Skip to content

Commit

Permalink
chore: add language identifier to enable syntax highlighting (open-te…
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 authored and danielkhan committed Sep 27, 2019
1 parent 64f2f36 commit b07e91c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry-basic-tracer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ For automatic instrumentation see the

## Installation

```
```bash
npm install --save @opentelemetry/basic-tracer
```

## Usage

```
```js
const opentelemetry = require('@opentelemetry/core');
const { BasicTracer } = require('@opentelemetry/basic-tracer');

Expand Down
6 changes: 3 additions & 3 deletions packages/opentelemetry-exporter-jaeger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ You can then navigate to http://localhost:16686 to access the Jaeger UI.

## Installation

```
```bash
npm install --save @opentelemetry/exporter-jaeger
```

## Usage

Install the exporter on your application and pass the options, it must contain a service name.

```
```js
import { JaegerExporter } from '@opentelemetry/exporter-jaeger';

const options = {
Expand All @@ -68,7 +68,7 @@ const exporter = new JaegerExporter(options);

Now, register the exporter.

```
```js
tracer.addSpanProcessor(new BatchSpanProcessor(exporter));
```

Expand Down
6 changes: 3 additions & 3 deletions packages/opentelemetry-exporter-zipkin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ OpenTelemetry Zipkin Trace Exporter allows the user to send collected traces to

## Installation

```
```bash
npm install --save @opentelemetry/exporter-zipkin
```

## Usage

Install the exporter on your application and pass the options, it must contain a service name.

```
```js
const { ZipkinExporter } = require('@opentelemetry/exporter-zipkin');

// Add your zipkin url (`http://localhost:9411/api/v2/spans` is used as
Expand All @@ -32,7 +32,7 @@ const exporter = new ZipkinExporter(options);

Now, register the exporter and start tracing.

```
```js
tracer.addSpanProcessor(new BatchSpanProcessor(exporter));
```

Expand Down
4 changes: 2 additions & 2 deletions packages/opentelemetry-node-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ For manual instrumentation see the
## Installation

```
```bash
npm install --save @opentelemetry/node-sdk
```

## Usage

```
```js
const opentelemetry = require('@opentelemetry/node-sdk');

// TODO: DEMONSTRATE API
Expand Down
6 changes: 3 additions & 3 deletions packages/opentelemetry-plugin-http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For automatic instrumentation see the

## Installation

```
```bash
npm install --save @opentelemetry/plugin-http
```

Expand All @@ -20,7 +20,7 @@ npm install --save @opentelemetry/plugin-http
OpenTelemetry HTTP Instrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems.

To load a specific plugin (HTTP in this case), specify it in the Node Tracer's configuration.
```
```js
const { NodeTracer } = require('@opentelemetry/node-sdk');

const tracer = new NodeTracer({
Expand All @@ -36,7 +36,7 @@ const tracer = new NodeTracer({
```

To load all the [supported plugins](https://github.com/open-telemetry/opentelemetry-js#plugins), use below approach. Each plugin is only loaded when the module that it patches is loaded; in other words, there is no computational overhead for listing plugins for unused modules.
```
```js
const { NodeTracer } = require('@opentelemetry/node-sdk');

const tracer = new NodeTracer();
Expand Down
4 changes: 2 additions & 2 deletions packages/opentelemetry-plugin-http2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ For automatic instrumentation see the

## Installation

```
```bash
npm install --save @opentelemetry/plugin-http2
```

## Usage

```
```js
const opentelemetry = require('@opentelemetry/plugin-http2');

// TODO: DEMONSTRATE API
Expand Down
4 changes: 2 additions & 2 deletions packages/opentelemetry-plugin-https/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ For automatic instrumentation see the

## Installation

```
```bash
npm install --save @opentelemetry/plugin-https
```

## Usage

```
```js
const opentelemetry = require('@opentelemetry/plugin-https');

// TODO: DEMONSTRATE API
Expand Down
4 changes: 2 additions & 2 deletions packages/opentelemetry-plugin-mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ For automatic instrumentation see the

## Installation

```
```bash
npm install --save @opentelemetry/plugin-mongodb
```

## Usage

```
```js
const opentelemetry = require('@opentelemetry/plugin-mongodb');

// TODO: DEMONSTRATE API
Expand Down

0 comments on commit b07e91c

Please sign in to comment.