Skip to content

Commit 3805a20

Browse files
authored
docs: fix metrics example typo (#2613)
The import statement needs a closing `'` in places.
1 parent d1aec4d commit 3805a20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/interface/src/metrics/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export interface CounterGroup {
150150
* @example How to register a simple metric
151151
*
152152
* ```typescript
153-
* import { Metrics, Metric } from '@libp2p/interface/metrics
153+
* import { Metrics, Metric } from '@libp2p/interface/metrics'
154154
*
155155
* interface MyServiceComponents {
156156
* metrics: Metrics
@@ -179,7 +179,7 @@ export interface CounterGroup {
179179
* A metric that is expensive to calculate can be created by passing a `calculate` function that will only be invoked when metrics are being scraped:
180180
*
181181
* ```typescript
182-
* import { Metrics, Metric } from '@libp2p/interface/metrics
182+
* import { Metrics, Metric } from '@libp2p/interface/metrics'
183183
*
184184
* interface MyServiceComponents {
185185
* metrics: Metrics
@@ -207,7 +207,7 @@ export interface CounterGroup {
207207
* If several metrics should be grouped together (e.g. for graphing purposes) `registerMetricGroup` can be used instead:
208208
*
209209
* ```typescript
210-
* import { Metrics, MetricGroup } from '@libp2p/interface/metrics
210+
* import { Metrics, MetricGroup } from '@libp2p/interface/metrics'
211211
*
212212
* interface MyServiceComponents {
213213
* metrics: Metrics
@@ -238,7 +238,7 @@ export interface CounterGroup {
238238
* This is something only libp2p transports need to do.
239239
*
240240
* ```typescript
241-
* import { Metrics } from '@libp2p/interface/metrics
241+
* import { Metrics } from '@libp2p/interface/metrics'
242242
*
243243
* interface MyServiceComponents {
244244
* metrics: Metrics
@@ -264,7 +264,7 @@ export interface CounterGroup {
264264
* This is something only libp2p connections need to do.
265265
*
266266
* ```typescript
267-
* import { Metrics } from '@libp2p/interface/metrics
267+
* import { Metrics } from '@libp2p/interface/metrics'
268268
*
269269
* interface MyServiceComponents {
270270
* metrics: Metrics

0 commit comments

Comments
 (0)