@ceramicnetwork/observability
TypeScript icon, indicating that this package has built-in type declarations

1.4.7 • Public • Published

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.

Package Sidebar

Install

npm i @ceramicnetwork/observability

Weekly Downloads

1,493

Version

1.4.7

License

(Apache-2.0 OR MIT)

Unpacked Size

17.7 kB

Total Files

8

Last publish

Collaborators

  • dav1do
  • ceramic-velvetshark
  • cb3box
  • jpham2023
  • npm.3box
  • smrz2001
  • oed
  • paul_lecam
  • stbrody
  • ukstv