Gathering detailed insights and metrics for @crabas0npm/nostrum-tenetur-ut
Gathering detailed insights and metrics for @crabas0npm/nostrum-tenetur-ut
Gathering detailed insights and metrics for @crabas0npm/nostrum-tenetur-ut
Gathering detailed insights and metrics for @crabas0npm/nostrum-tenetur-ut
npm install @crabas0npm/nostrum-tenetur-ut
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
33
The definition of the word exceptionless is: to be without exception. Exceptionless provides real-time error reporting for your JavaScript applications in the browser or in Node.js. It organizes the gathered information into simple actionable data that will help your app become exceptionless!
You can install the npm package via npm install @exceptionless/browser --save
or via cdn https://unpkg.com/@exceptionless/browser
.
Next, you just need to call startup during your apps startup to automatically
capture unhandled errors.
1import { Exceptionless } from "https://unpkg.com/@exceptionless/browser"; 2 3await Exceptionless.startup((c) => { 4 c.apiKey = "API_KEY_HERE"; 5 c.setUserIdentity("12345678", "Blake"); 6 7 // set some default data 8 c.defaultData["mydata"] = { 9 myGreeting: "Hello World" 10 }; 11 12 c.defaultTags.push("Example", "JavaScript", "Browser"); 13}); 14 15try { 16 throw new Error("test"); 17} catch (error) { 18 await Exceptionless.submitException(error); 19}
You can install the npm package via npm install @exceptionless/node --save
.
Next, you just need to call startup during your apps startup to automatically
capture unhandled errors.
1import { Exceptionless } from "@exceptionless/node"; 2 3await Exceptionless.startup((c) => { 4 c.apiKey = "API_KEY_HERE"; 5 c.setUserIdentity("12345678", "Blake"); 6 7 // set some default data 8 c.defaultData["mydata"] = { 9 myGreeting: "Hello World" 10 }; 11 12 c.defaultTags.push("Example", "JavaScript", "Node"); 13}); 14 15try { 16 throw new Error("test"); 17} catch (error) { 18 await Exceptionless.submitException(error); 19}
You can install Exceptionless either in your browser application using a script
tag, or you can use the Node Package Manager (npm) to install the package.
Use one of the following methods to install Exceptionless into your browser application:
Add the following script tag at the very beginning of your page:
1<script type="module"> 2 import { Exceptionless } from "https://unpkg.com/@exceptionless/browser"; 3 4 await Exceptionless.startup((c) => { 5 c.apiKey = "API_KEY_HERE"; 6 }); 7</script>
npm install @exceptionless/browser --save
.1import { Exceptionless } from "@exceptionless/browser"; 2 3await Exceptionless.startup((c) => { 4 c.apiKey = "API_KEY_HERE"; 5});
Use this method to install Exceptionless into your Node application:
npm install @exceptionless/node --save
.1import { Exceptionless } from "@exceptionless/node"; 2 3await Exceptionless.startup((c) => { 4 c.apiKey = "API_KEY_HERE"; 5});
In order to use Exceptionless, the apiKey
setting has to be configured first.
You can configure the ExceptionlessClient
class by calling
await Exceptionless.startup("API_KEY_HERE");
. If you want to configure
additional client settings you'll want to call the startup
overload that takes
a callback as shown below:
1await Exceptionless.startup((c) => { 2 c.apiKey = "API_KEY_HERE"; 3});
Please see the docs for more information on configuring the client.
Once configured, Exceptionless will automatically submit any unhandled exceptions that happen in your application to the Exceptionless server. The following sections will show you how to manually submit different event types as well as customize the data that is sent:
You may also want to submit log messages, feature usage data or other kinds of events. You can do this very easily with the fluent API:
1import { Exceptionless } from "@exceptionless/browser";
2
3await Exceptionless.submitLog("Logging made easy");
4
5// You can also specify the log source and log level.
6// We recommend specifying one of the following log levels: Trace, Debug, Info, Warn, Error
7await Exceptionless.submitLog("app.logger", "This is so easy", "Info");
8await Exceptionless.createLog("app.logger", "This is so easy", "Info").addTags("Exceptionless").submit();
9
10// Submit feature usages
11await Exceptionless.submitFeatureUsage("MyFeature");
12await Exceptionless.createFeatureUsage("MyFeature").addTags("Exceptionless").submit();
13
14// Submit a 404
15await Exceptionless.submitNotFound("/somepage");
16await Exceptionless.createNotFound("/somepage").addTags("Exceptionless").submit();
17
18// Submit a custom event type
19await Exceptionless.submitEvent({ message = "Low Fuel", type = "racecar", source = "Fuel System" });
In addition to automatically sending all unhandled exceptions, you may want to manually send exceptions to the service. You can do so by using code like this:
1import { Exceptionless } from "@exceptionless/node"; 2 3await Exceptionless.startup("API_KEY_HERE"); 4 5try { 6 throw new Error("test"); 7} catch (error) { 8 await Exceptionless.submitException(error); 9}
You can easily include additional information in your error reports using the fluent event builder API.
1import { Exceptionless } from "@exceptionless/node";
2await Exceptionless.startup("API_KEY_HERE");
3
4try {
5 throw new Error("Unable to create order from quote.");
6} catch (error) {
7 await Exceptionless.createException(error)
8 // Set the reference id of the event so we can search for it later (reference:id).
9 .setReferenceId("random guid")
10 // Add the order object (the ability to exclude specific fields will be coming in a future version).
11 .setProperty("Order", order)
12 // Set the quote number.
13 .setProperty("Quote", 123)
14 // Add an order tag.
15 .addTags("Order")
16 // Mark critical.
17 .markAsCritical()
18 // Set the coordinates of the end user.
19 .setGeo(43.595089, -88.444602)
20 // Set the user id that is in our system and provide a friendly name.
21 .setUserIdentity(user.Id, user.FullName)
22 // Submit the event.
23 .submit();
24}
The Exceptionless client can also be configured to send data to your self hosted
instance. This is configured by setting the serverUrl
on the default
ExceptionlessClient
when calling startup
:
1await Exceptionless.startup((c) => { 2 c.apiKey = "API_KEY_HERE"; 3 c.serverUrl = "https://localhost:5100"; 4});
By default the Exceptionless Client will report all available metadata including potential PII data. You can fine tune the collection of information via Data Exclusions or turning off collection completely.
Please visit the docs for detailed information on how to configure the client to meet your requirements.
If you need help, please contact us via in-app support, open an issue or join our chat on Discord. We’re always here to help if you have any questions!
If you find a bug or want to contribute a feature, feel free to create a pull request.
Clone this repository:
1git clone https://github.com/crabas0npm/nostrum-tenetur-ut.git
Install Node.js. Node is used for building and testing purposes.
Install the development dependencies using npm.
1npm install
Build the project by running the following command.
1npm run build
Test the project by running the following command.
1npm test
Thanks to all the people who have contributed!
No vulnerabilities found.
No security vulnerabilities found.