Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
"e2e": "xvfb-maybe vitest run --root=./test/e2e --silent=false --disable-console-intercept"
},
"dependencies": {
"@sentry/browser": "9.43.0",
"@sentry/core": "9.43.0",
"@sentry/node": "9.43.0",
"@sentry/browser": "10.0.0",
"@sentry/core": "10.0.0",
"@sentry/node": "10.0.0",
"deepmerge": "4.3.1"
},
"peerDependencies": {
"@sentry/node-native": "9.43.0"
"@sentry/node-native": "10.0.0"
},
"peerDependenciesMeta": {
"@sentry/node-native": {
Expand All @@ -110,9 +110,9 @@
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@sentry/node-native": "9.43.0",
"@sentry-internal/eslint-config-sdk": "9.43.0",
"@sentry-internal/typescript": "9.43.0",
"@sentry/node-native": "10.0.0",
"@sentry-internal/eslint-config-sdk": "10.0.0",
"@sentry-internal/typescript": "10.0.0",
"@types/busboy": "^1.5.4",
"@types/form-data": "^2.5.0",
"@types/koa": "^2.0.52",
Expand Down
1 change: 1 addition & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export {
extraErrorDataIntegration,
fastifyIntegration,
featureFlagsIntegration,
firebaseIntegration,
flush,
fsIntegration,
functionToStringIntegration,
Expand Down
12 changes: 6 additions & 6 deletions src/renderer/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function captureLog(
}

/**
* @summary Capture a log with the `trace` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `trace` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { userId: 100, route: '/dashboard' }.
Expand Down Expand Up @@ -53,7 +53,7 @@ export function trace(message: ParameterizedString, attributes?: Log['attributes
}

/**
* @summary Capture a log with the `debug` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `debug` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { component: 'Header', state: 'loading' }.
Expand Down Expand Up @@ -83,7 +83,7 @@ export function debug(message: ParameterizedString, attributes?: Log['attributes
}

/**
* @summary Capture a log with the `info` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `info` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { feature: 'checkout', status: 'completed' }.
Expand Down Expand Up @@ -113,7 +113,7 @@ export function info(message: ParameterizedString, attributes?: Log['attributes'
}

/**
* @summary Capture a log with the `warn` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `warn` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { browser: 'Chrome', version: '91.0' }.
Expand Down Expand Up @@ -144,7 +144,7 @@ export function warn(message: ParameterizedString, attributes?: Log['attributes'
}

/**
* @summary Capture a log with the `error` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `error` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { error: 'NetworkError', url: '/api/data' }.
Expand Down Expand Up @@ -176,7 +176,7 @@ export function error(message: ParameterizedString, attributes?: Log['attributes
}

/**
* @summary Capture a log with the `fatal` level. Requires `_experiments.enableLogs` to be enabled in the Electron main process.
* @summary Capture a log with the `fatal` level. Requires `enableLogs` to be enabled in the Electron main process.
*
* @param message - The message to log.
* @param attributes - Arbitrary structured data that stores information about the log - e.g., { appState: 'corrupted', sessionId: 'abc-123' }.
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface ElectronRendererOptions extends Omit<BrowserOptions, 'dsn' | 'environm
export function init<O extends ElectronRendererOptions>(
options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,
// This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches
originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v9_43_0: O) => void = browserInit,
originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_0_0: O) => void = browserInit,
): void {
// Ensure the browser SDK is only init'ed once.
if (window?.__SENTRY__RENDERER_INIT__) {
Expand Down
1 change: 1 addition & 0 deletions src/utility/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export {
extraErrorDataIntegration,
fastifyIntegration,
featureFlagsIntegration,
firebaseIntegration,
flush,
fsIntegration,
functionToStringIntegration,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-apps/other/renderer-error/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

init({
debug: true,
_experiments: { enableLogs: true },
enableLogs: true,
});

logger.trace('User clicked submit button', {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/test-apps/other/renderer-error/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { init, logger } = require('@sentry/electron/main');
init({
dsn: '__DSN__',
debug: true,
_experiments: { enableLogs: true },
enableLogs: true,
onFatalError: () => {},
});

Expand Down
Loading