Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adversinc/meteor-resentry
https://github.com/adversinc/meteor-resentry
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adversinc/meteor-resentry
- Owner: adversinc
- License: mit
- Created: 2024-07-24T09:59:41.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T14:25:43.000Z (4 months ago)
- Last Synced: 2024-09-06T17:06:52.556Z (4 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Sentry wrapper for MeteorJS
## Usage
Add configuration (see below) to Meteor settings.
client/index.ts:
```typescript
import * as Resentry from "meteor-resentry/lib/client";
Resentry.init(Meteor.settings.public.sentry, Meteor);
```server/index.ts:
```typescript
import * as Resentry from "meteor-resentry/lib/server";
Resentry.init(Meteor.settings.public.sentry, Meteor);
```### Sentry versions
@sentry/browser version is currently limited to ^7. v8 makes Meteor crash with wrong
modules load order.## Configuration
```json5
{
// Sentry DSN
dsn: "...",// Release ID for Sentry
release: "0.0.1",
// Optional, ignore rules for Sentry
ignoreErrors: [],// Optional, forces to enable Sentry (by default, Sentry disabled in development)
forceEnable: false,
// Optional, extra logging is enabled
debug: false,
}
```Specifying the project release version is
strongly recommended. It can be done either i:* ```Meteor.session.public.version```
* ```Meteor.settings.public.sentry.release```# Testing
To test your setup is working, run the following code
and check if you get the error in Sentry.client/index.ts:
```typescript
setTimeout(() => {
// @ts-ignore
unexistantFunc();
}, 1000);setTimeout(() => {
console.error("Testing console.error");
}, 500);
```server/index.ts:
```typescript
setTimeout(() => {
// @ts-ignore
serverUnexistantFunc();
}, 1000);setTimeout(() => {
console.error("Testing server console.error");
}, 500);
```