v2.3.0
Previous version creates a new Hub
for every new instance of the plugin, which separates the information/scope of reported events from Sentry platform implementation (@sentry/vue
, @sentry/node
, etc). This version uses minimal Sentry platform interface instead of creating a new one from Client
, which allows users to input their Sentry platform instances.
import * as Sentry from "@sentry/vue";
// import * as Sentry from "@sentry/node";
const plugin = new LoglevelSentryPlugin(Sentry);
plugin.install(logger);