Skip to content

juyoungpark718/Project11-B-Web-FE-Performance-Monitoring-SDK

 
 

Repository files navigation

Panopticon JavaScript SDK

Usage

install SDK from the CLI

npm install pan-opt

initialize Panopticon at the entry point of your app

import Panopticon from "pan-opt";


Panopticon.init(dsn) // dsn: your dsn issued from panopticon.gq

To set context information or send manual errors, use the exported functions of pan-opt.

import Panopticon from "pan-opt";

// Set user information, as well as tags and further extras
Panopticon.setTag('custom', 'Tag');
Panopticon.setTag('foo', 'bar');
Panopticon.setUser('Warden');

// Capture exceptions, send manual errors
try {
  throw new Error("Maybe I'll be caught by try-catch");
} catch (err) {
  Panopticon.send(err);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 59.1%
  • JavaScript 26.9%
  • HTML 14.0%