Skip to content

Commit

Permalink
Fix documentation links
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 10, 2022
1 parent 8e1a15f commit 8047524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ example you see that we accessed our `/` endpoint six times.

## Acquiring a Meter

In OpenTelemetry, Instruments that allow for measurement operations are acquired through a _meter_. You can get a meter by calling [`getMeter`](hhttps://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api_metrics.MeterProvider.html#getMeter) on the global meter provider. `getMeter` takes the name and version of the application or library acquiring the meter, and provides a meter which can be used to create instruments.
In OpenTelemetry, Instruments that allow for measurement operations are acquired through a _meter_. You can get a meter by calling [`getMeter`](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.MeterProvider.html#getMeter) on the global meter provider. `getMeter` takes the name and version of the application or library acquiring the meter, and provides a meter which can be used to create instruments.

```typescript
import { metrics } from '@opentelemetry/api';
Expand All @@ -253,7 +253,7 @@ there are four types of instruments that can be created:
- UpDownCounter, a synchronous instrument which supports increments and decrements, such as number of active requests
- Asynchronous UpDownCounter, an asynchronous instrument which supports increments and decrements

You can create a Counter instrument by calling [`Meter#createCounter`](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api_metrics.Meter.html#createCounter). The only required argument to `createCounter` is the _instrument name_, which should describe the item that is being measurement.
You can create a Counter instrument by calling [`Meter#createCounter`](https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_api.Meter.html#createCounter). The only required argument to `createCounter` is the _instrument name_, which should describe the item that is being measurement.

```typescript
const counter = meter.createCounter("events.counter");
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
"entryPointStrategy": "packages",
"entryPoints": [
"api",
"experimental/packages/api-logs",
"experimental/packages/exporter-trace-otlp-grpc",
"experimental/packages/exporter-trace-otlp-http",
"experimental/packages/exporter-trace-otlp-proto",
"experimental/packages/opentelemetry-browser-detector",
"experimental/packages/opentelemetry-exporter-metrics-otlp-grpc",
"experimental/packages/opentelemetry-exporter-metrics-otlp-http",
"experimental/packages/opentelemetry-exporter-metrics-otlp-proto",
Expand All @@ -17,7 +19,6 @@
"experimental/packages/opentelemetry-instrumentation-http",
"experimental/packages/opentelemetry-instrumentation-xml-http-request",
"experimental/packages/opentelemetry-instrumentation",
"experimental/packages/opentelemetry-sdk-metrics",
"experimental/packages/opentelemetry-sdk-node",
"experimental/packages/otlp-exporter-base",
"experimental/packages/otlp-grpc-exporter-base",
Expand All @@ -36,7 +37,8 @@
"packages/opentelemetry-sdk-trace-node",
"packages/opentelemetry-sdk-trace-web",
"packages/opentelemetry-semantic-conventions",
"packages/opentelemetry-shim-opentracing"
"packages/opentelemetry-shim-opentracing",
"packages/sdk-metrics"
],
"out": "docs",
"exclude": [
Expand Down

0 comments on commit 8047524

Please sign in to comment.