npm.io
1.5.7 • Published 2 years ago

@ceramicnetwork/observability

Licence
(Apache-2.0 OR MIT)
Version
1.5.7
Deps
9
Size
20 kB
Vulns
1
Weekly
0
Stars
1

Service Metrics

Exports metrics and traces to OTLP-compatible collector

Purpose

Provides an interface for recording metrics and traces.

Installation

npm install @ceramicnetwork/observability

Usage

Import the class, start the metrics service and record metrics.

NOTE that an OTLP collector host must be provided or the functions will not be operative.

import { Metrics } from '@ceramicnetwork/observability'

Configuration

Configuration settings should be passed to the start function which instantiates the metrics singleton instance.

Keywords