Skip to content

Commit

Permalink
fix(getting-started): match return type of createCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
mickdekkers committed Aug 2, 2020
1 parent 0cde542 commit ddb07c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getting-started/ts-example/monitoring.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MeterProvider } from '@opentelemetry/metrics';
import { Metric, BoundCounter } from '@opentelemetry/api';
import { Counter } from '@opentelemetry/api';
import { PrometheusExporter } from '@opentelemetry/exporter-prometheus';

const exporter = new PrometheusExporter(
Expand All @@ -18,7 +18,7 @@ const meter = new MeterProvider({
interval: 1000,
}).getMeter('example-ts');

const requestCount: Metric<BoundCounter> = meter.createCounter("requests", {
const requestCount: Counter = meter.createCounter("requests", {
description: "Count all incoming requests"
});

Expand Down

0 comments on commit ddb07c8

Please sign in to comment.