This package is a wrapper for sentry library. It allows you to simply use latest Sentry SDK on both client and a server in your meteor application.
This package is MIT Licensed.
- 2020-10-05
- change ecmascript package version support 0.10.0 or newer.
- fixed server options field name.
meteor add irelander:meteor-sentryThe same interface can be used on a client and server.
import MeteorSentry from 'meteor/irelander:meteor-sentry';To use this package, call the init function as early as possible in your app.
-
sentryConfig- Configuration options for the Sentry. Checkout detail options. client / server -
options- The use of optional parameters depends on where they can be used.inactiveLogging- inactive each logging.methods(boolean)- (Server only)inactive meteor method tracking.
methodOptions- (Server only)Meteor method logging optionslogLevel( 'all' | 'error' )- defaultall. if you set error, only caputureMessage when occurred error.excludesMethodList(String[])- list of method name. Those methods will not be logged.excludesArguments(boolean)- if you set true, the arguments will not be logged .excludesResult(boolean)- if you set true, method return result will not be logged.
import MeteorSentry from 'meteor/irelander:meteor-sentry';
const sentryConfig = {
dsn : "http://{uuid}@http://{yourSentryDomain}/{sentryAppId}",
...
};import MeteorSentry from 'meteor/irelander:meteor-sentry';
const sentryConfig = {
dsn : "http://{uuid}@http://{yourSentryDomain}/{sentryAppId}",
...
};
const options = {
methodOptions : {
excludesMethodList : [ "checkExpiredToken" ] // if method name checkExpiredToken will not be logged.
}
}
Meteor.startup(()=>{
MeteorSentry.init(sentryConfig, options);
});Logging with level info
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level warning
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level log
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level fatal
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level error
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level debug
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
Logging with level critical
message(string)- logging message.options- Sentry Loggin Optonsextras(object)- Equal to setExtrastags(Array)- Equal to setTag.name(string)- tag name.value(any)- tag value.
This is raw Sentry Object.
- Client Integration add ( Vue / React )
- Internal Method Tracking
- Server route logging
If anyone has a good idea, please PR.