diff --git a/integrations/sentry/lib/index.js b/integrations/sentry/lib/index.js
index 5f3d63993..a94ee1144 100644
--- a/integrations/sentry/lib/index.js
+++ b/integrations/sentry/lib/index.js
@@ -16,24 +16,22 @@ var Sentry = (module.exports = integration('Sentry')
.global('Sentry')
.option('config', '')
.option('environment', null)
- .option('serverName', null)
.option('release', null)
.option('ignoreErrors', []) // still exists, but not documented on Sentry's website
.option('ignoreUrls', [])
.option('whitelistUrls', [])
.option('includePaths', []) // maps to Sentry.Integrations.RewriteFrames plugin
- .option('maxMessageLength', null) // deprecated
.option('logger', null)
.option('customVersionProperty', null)
.option('debug', false)
.tag(
'sentry',
- ''
+ ''
)
// Sentry.Integrations.RewriteFrames plugin: https://docs.sentry.io/platforms/javascript/#rewriteframes
.tag(
'plugin',
- ''
+ ''
));
/**
@@ -52,9 +50,8 @@ Sentry.prototype.initialize = function() {
dsn: this.options.config,
environment: this.options.environment,
release: customRelease || this.options.release,
- serverName: this.options.serverName,
- whitelistUrls: this.options.whitelistUrls,
- blacklistUrls: this.options.ignoreUrls,
+ allowUrls: this.options.whitelistUrls,
+ denyUrls: this.options.ignoreUrls,
// ignoreErrors still exists, but is not documented on Sentry's website
// https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/integrations/inboundfilters.ts#L12
ignoreErrors: this.options.ignoreErrors,
diff --git a/integrations/sentry/package.json b/integrations/sentry/package.json
index 33b4e2dc1..f683f751f 100644
--- a/integrations/sentry/package.json
+++ b/integrations/sentry/package.json
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-sentry",
"description": "The Sentry analytics.js integration.",
- "version": "3.0.1",
+ "version": "4.0.0",
"keywords": [
"analytics.js",
"analytics.js-integration",
diff --git a/integrations/sentry/test/index.test.js b/integrations/sentry/test/index.test.js
index 798c4d7f0..e630f01a2 100644
--- a/integrations/sentry/test/index.test.js
+++ b/integrations/sentry/test/index.test.js
@@ -61,13 +61,11 @@ describe('Sentry', function() {
.global('Sentry')
.option('config', '')
.option('environment', null)
- .option('serverName', null)
.option('release', null)
.option('ignoreErrors', [])
.option('ignoreUrls', [])
.option('whitelistUrls', [])
.option('includePaths', [])
- .option('maxMessageLength', null)
.option('logger', null)
.option('customVersionProperty', null)
.option('debug', false)