0.0.0 • Published 8 months ago

@wings-j/monitor-web v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

monitor-web

Web monitor for exceptions, requests and analysis.

Features

  • Supervise web exceptions.
  • Supervise web request with XMLHttpRequest and fetch.
  • Analyze web performance by Web Vitals.
  • Send log to server.

Install

npm install @wings-j/monitor-web

Usage

import { initiate } from '@wings-j/monitor-web'

const monitor = initiate('http://localhost:5500', {}) // The argument is the log server address and options.

Options

The second argument of the initiate function is an object includes:

NameTypeDescription
applicationstringApplication Name
headersObjectHeaders of log request to server
metaObject or FunctionExtra data
0.0.0

8 months ago