1.2.6 • Published 2 months ago

@libp2p/simple-metrics v1.2.6

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
2 months ago

@libp2p/simple-metrics

libp2p.io Discuss codecov CI

Simple in-memory metrics gathering for libp2p

About

Stores metrics in memory and periodically invokes a configured callback to receive them.

Example

import { createLibp2p } from 'libp2p'
import { simpleMetrics } from '@libp2p/simple-metrics'

const node = await createLibp2p({
  // ... other options
  metrics: simpleMetrics({
    onMetrics: (metrics) => {
      // do something with metrics
    }
  }),
  intervalMs: 1000 // default 1s
})

Install

$ npm i @libp2p/simple-metrics

Browser <script> tag

Loading this module through a script tag will make it's exports available as Libp2pSimpleMetrics in the global namespace.

<script src="https://unpkg.com/@libp2p/simple-metrics/dist/index.min.js"></script>

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

1.2.6-0a3406a05

2 months ago

1.2.6-c2ff2e454

2 months ago

1.2.6

2 months ago

1.2.5-7383821e1

2 months ago

1.2.6-ad5cfd66a

2 months ago

1.2.5-a657bbd2e

2 months ago

1.2.5-d34642db1

2 months ago

1.2.6-a5cd8cfbe

2 months ago

1.2.5-717731e49

2 months ago

1.2.5

2 months ago

1.2.4-4521cf1f7

2 months ago

1.2.4-3244ed086

2 months ago

1.2.4-aa8de9fd3

2 months ago

1.2.4-3bc9769b8

2 months ago

1.2.4-75301ac7d

2 months ago

1.2.4-e6b4158c6

2 months ago

1.2.4

2 months ago

1.2.3-e99e8f448

3 months ago

1.2.3-58784abf7

3 months ago

1.2.3-dad979f9b

3 months ago

1.2.3-27b2fa6b6

3 months ago

1.2.3-24fa1d5af

3 months ago

1.2.3-b4f02a637

3 months ago

1.2.3-82bd42bcf

3 months ago

1.2.3-661d6586a

3 months ago

1.2.3-35b48025c

3 months ago

1.2.3-80e798cdc

3 months ago

1.2.3-a390db4a4

3 months ago

1.2.3-934a891f9

3 months ago

1.2.3-0d326d102

2 months ago

1.2.3-32c176fd5

3 months ago

1.2.4-5d199f9b6

2 months ago

1.2.3-d4da56961

3 months ago

1.2.3-d7a818e8e

3 months ago

1.2.3-d9c7e0f7e

3 months ago

1.2.3

3 months ago

1.2.2-0c5957836

3 months ago

1.2.2-980038477

3 months ago

1.2.2-c5988cce8

3 months ago

1.2.2-fa83ee1c7

3 months ago

1.2.2

3 months ago

1.2.1

3 months ago

1.2.0-7f7ec82ae

3 months ago

1.2.1-c258b35af

3 months ago

1.2.0-b3272cfce

3 months ago

1.2.0

3 months ago

1.1.7-c628c44c5

3 months ago

1.1.7-21fe841f2

3 months ago

1.1.7-6ccbb06f0

3 months ago

1.1.7-4fd7eb2e1

3 months ago

1.1.7-34455b5f2

3 months ago

1.1.6-1210884ed

3 months ago

1.1.7

3 months ago

1.1.6-18dd3cb26

3 months ago

1.1.6-d101aac4b

3 months ago

1.1.5-5214dec4a

4 months ago

1.1.5-e1ca9cced

3 months ago

1.1.6-7cd984569

3 months ago

1.1.5-a142bb642

3 months ago

1.1.5-2bbaf4361

3 months ago

1.1.6

3 months ago

1.1.5-c010d575c

3 months ago

1.1.5-81ebe4e47

3 months ago

1.1.5-71e5f7a5b

3 months ago

1.1.5-b6681bd25

3 months ago

1.1.5-df330695a

4 months ago

1.1.5-dd7b329c4

4 months ago

1.1.5-2265e59ba

4 months ago

1.1.5-737b3ea5b

4 months ago

1.1.5-1675adee2

4 months ago

1.1.5-50b897139

4 months ago

1.1.5-e211b46cc

4 months ago

1.1.5-7655e5200

4 months ago

1.0.2-169c9d85e

7 months ago

1.1.0-15eb66428

6 months ago

1.1.2-8b3114292

5 months ago

1.0.3

7 months ago

1.1.2-40902d99b

5 months ago

1.0.3-863b3de03

6 months ago

1.1.2-928801a80

5 months ago

1.1.2-a82ff8221

5 months ago

1.0.2-769461d3b

7 months ago

1.1.1-151bc46fb

6 months ago

1.1.0-af85a7cad

6 months ago

1.0.2-bc6556f96

7 months ago

1.1.0-b0b6cae12

6 months ago

1.1.1-e9b6a242a

5 months ago

1.0.2-7aec7bd45

7 months ago

1.1.4-1dfb74e79

4 months ago

1.0.3-44791342

6 months ago

1.0.3-d1f1c2be7

6 months ago

1.1.1-ce6da9896

6 months ago

1.1.5-3c8dd5bbf

4 months ago

1.1.4-c5dba70a9

4 months ago

1.1.2-a130993ed

5 months ago

1.1.4-7939dbd5c

4 months ago

1.1.0-21cf7bc56

6 months ago

1.0.3-8e4fdcde9

6 months ago

1.1.1-3319ff41e

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.1.1-e1f0b307c

6 months ago

1.1.0-3b9cbf7d8

6 months ago

1.0.2-f4e572cd6

7 months ago

1.1.2-73f2b6b6d

5 months ago

1.0.2-90d10b565

7 months ago

1.1.5

4 months ago

1.1.4

5 months ago

1.1.2-4a994c5ef

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.0.2-6011d3697

7 months ago

1.0.2-f6fe2cc3c

7 months ago

1.1.2-a8ec2bcb7

5 months ago

1.0.2-62e32252a

7 months ago

1.1.0-6573cb8b0

6 months ago

1.0.2-7464dc00c

7 months ago

1.0.2-440c9b360

7 months ago

1.1.5-359265a3a

4 months ago

1.0.2-12106b5b0

7 months ago

1.0.2-757fb2674

7 months ago

1.0.2-352699ab5

7 months ago

1.0.3-9e0236627

6 months ago

1.1.4-0edbfe7af

5 months ago

1.1.2-34cf1f7cd

5 months ago

1.1.3-f30e2ee8d

5 months ago

1.0.2-4bd8e4f79

7 months ago

1.1.0-0b55625d1

6 months ago

1.0.2-167bf2b3c

7 months ago

1.1.1-d1aec4d9f

6 months ago

1.1.0-abb9f90c7

6 months ago

1.1.3-944935f8d

5 months ago

1.0.3-94cac115a

6 months ago

1.0.2-e69a2f1b6

7 months ago

1.0.2

7 months ago

1.0.1-48444f750

7 months ago

1.0.1-1cd5aae11

7 months ago

1.0.1-1a41c28bb

7 months ago

1.0.1-1cc6a9405

7 months ago

1.0.1-8214dcfb0

7 months ago

1.0.1-5b7380259

7 months ago

1.0.1-7de56f244

7 months ago

1.0.1-1eb5b2713

7 months ago

1.0.1-a3e8beabd

7 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago