Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
include electron metadata for envelope header
  • Loading branch information
timfish committed May 24, 2022
commit b06e5f47d879d16cde5ed5ecfea1268ec7f84862
2 changes: 2 additions & 0 deletions src/main/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from './integrations';
import { configureIPC } from './ipc';
import { makeElectronNetOfflineTransport } from './transports/electron-offline-net';
import { SDK_VERSION } from './version';

export const defaultIntegrations: Integration[] = [
new SentryMinidump(),
Expand Down Expand Up @@ -68,6 +69,7 @@ export type ElectronMainOptions = Pick<Partial<ElectronMainOptionsInternal>, 'ge
Omit<ElectronMainOptionsInternal, 'getSessions' | 'ipcMode'>;

const defaultOptions: ElectronMainOptionsInternal = {
_metadata: { sdk: { name: 'npm:@sentry/electron', version: SDK_VERSION } },
ipcMode: IPCMode.Both,
getSessions: () => [session.defaultSession],
};
Expand Down