{
    "componentChunkName": "component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js",
    "path": "/docs/destinations/error-reporting/sentry/",
    "result": {"data":{"mdx":{"id":"da5cb959-0724-5f87-8d63-b751fa2f1c40","excerpt":"Sentry Sentry  is a popular error monitoring and reporting tool. It is open-source and enables you to monitor and track real-time errors and crashes in your app…","fields":{"slug":"/docs/destinations/error-reporting/sentry/"},"frontmatter":{"title":"Sentry","description":"Step-by-step guide to send your event data from RudderStack to Sentry.","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Sentry\",\n  \"description\": \"Step-by-step guide to send your event data from RudderStack to Sentry.\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h1\", {\n    \"id\": \"sentry\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h1\",\n    \"href\": \"#sentry\",\n    \"aria-label\": \"sentry permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Sentry\"), mdx(\"p\", null, mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://sentry.io/about/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Sentry\")), \" is a popular error monitoring and reporting tool. It is open-source and enables you to monitor and track real-time errors and crashes in your app.\"), mdx(\"p\", null, \"RudderStack supports Sentry as a destination to which you can send your event data directly.\"), mdx(\"h2\", {\n    \"id\": \"getting-started\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#getting-started\",\n    \"aria-label\": \"getting started permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Getting Started\"), mdx(\"p\", null, \"Before configuring Sentry as a destination in RudderStack, verify if Sentry supports the source platform you are sending the events from by referring to the following table:\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Connection Mode\")), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Web\")), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Mobile\")), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"th\"\n  }, \"Server\")))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Device mode\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Supported\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, mdx(\"strong\", {\n    parentName: \"td\"\n  }, \"Cloud mode\")), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": \"left\"\n  }, \"-\")))), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"To know more about the difference between Cloud mode and Device mode in RudderStack, read the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://rudderstack.com/docs/connections/rudderstack-connection-modes/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"RudderStack connection modes\")), \" guide.\")), mdx(\"p\", null, \"Once you have confirmed that the source platform supports sending events to Sentry, follow these steps:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"From your \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://app.rudderstack.com/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"RudderStack dashboard\")), \", add the source. Then, select \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Sentry\"), \" from the list of destinations.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"Follow our guide on \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://rudderstack.com/docs/connections/adding-source-and-destination-rudderstack/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"How to Add a Source and Destination in RudderStack\")), \" for more information.\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Assign a name to the destination and click on \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Next\"), \". You will then see the following screen:\")), mdx(\"undefined\", null, mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"960px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"93.75%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRmAAAABXRUJQVlA4IFQAAADwAwCdASoUABMAPjEWiUOiISEUBAAgAwS0gAAYv+AaNRbvOvFJMw7wAP7/buGLB2ADtk14hkFiKUXIdrhQ6pITsCnB8jhxuiTOZbT6ZmOptFAAAAA=')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/71b55c01c1a51d71cf55c1ff8e5a297c/cbea2/sentry.webp 240w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/42669/sentry.webp 480w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/10c02/sentry.webp 960w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/fead5/sentry.webp 1440w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/33cff/sentry.webp 1682w\"],\n    \"sizes\": \"(max-width: 960px) 100vw, 960px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/71b55c01c1a51d71cf55c1ff8e5a297c/5243c/sentry.png 240w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/ab158/sentry.png 480w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/7d769/sentry.png 960w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/87339/sentry.png 1440w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/f211e/sentry.png 1682w\"],\n    \"sizes\": \"(max-width: 960px) 100vw, 960px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/7d769/sentry.png\",\n    \"alt\": \"Configuration settings for sentry\",\n    \"title\": \"Configuration settings for sentry\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \"), mdx(\"span\", {\n    \"className\": \"imageTitle\"\n  }, \"Configuration Settings for Sentry\")), mdx(\"h3\", {\n    \"id\": \"connection-settings\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#connection-settings\",\n    \"aria-label\": \"connection settings permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Connection Settings\"), mdx(\"p\", null, \"To successfully configure Sentry as a destination, configure the following settings:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Public DSN:\"), \" Enter the public DSN of your Sentry project here. \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"This is a mandatory field\"), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"Refer to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"#faq\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"FAQ\")), \" section below for more information on getting your public DSN.\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Environment:\"), \" Enter the value you want RudderStack to set as the environment configuration in your Sentry dashboard. For more information on the use of environments in Sentry, refer to their \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.sentry.io/product/sentry-basics/environments/#creating-environments\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"documentation\")), \".\")), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, mdx(\"p\", null, \"If you enter the value for the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Environment\"), \" field as a forward slash \", \"(\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"/\"), \")\", \", new line character, space \", \"(\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \" \"), \"), or the string \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"None\"), \", Sentry will silently discard the environment configuration information without sending any error.\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Set Release By Property:\"), \" This field helps you dynamically track the application version in Sentry. The property set here will be searched in the global window object. If found, RudderStack will use that particular version. Otherwise, the value set in the \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Release\"), \" field will be used by default.\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"Suppose you have set the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Set Release By Property\"), \" field to the value \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"new_custom_version\"), \" and RudderStack finds \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"window.new_custom_version=2.4.5\"), \" in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"window\"), \" object. In this case, RudderStack will send the value \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"2.4.5\"), \" as the app version to Sentry. Otherwise, it will look for the value input in the \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Release\"), \" field and send it as the app version.\")), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, mdx(\"p\", null, \"Sentry needs the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"release\"), \" value for every single session. If neither \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Set Release By Property\"), \" or \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Release fields\"), \" are specified in the dashboard while configuring the destination, the particular session will be discarded.\")), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Release:\"), \" This field is used for tracking your application's version in Sentry.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Server Name:\"), \" This option is used to track the host on which the client is running. You can enter the server name or even the Device ID in this field.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Logger:\"), \" The name you want Sentry to use as logger. For more information on Sentry's logging feature, refer to their \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.sentry.io/platforms/python/guides/logging/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"docs\")), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Ignore Errors:\"), \" This option refers to a list of error messages that you do not want Sentry to notify you. You can enter this list as a string or a regular expression.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Include Paths:\"), \" This field should contain the regex patterns of URLs that are part of the app in the stack trace. The other frames will appear as collapsed in the Sentry dashboard.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Allow URLs:\"), \" This is the list of the regex patterns or exact URL strings - from which the errors need to be exclusively sent to Sentry. The URLs of the actual JavaScript files should match this list.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Deny URLs:\"), \" This field refers to the list of regex patterns or exact URL strings for which the errors need to be ignored.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Debug Mode:\"), \" In debug mode, no events are sent to your Sentry instance. You can set this option to \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"true\"), \" or \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"false\"), \" to enable or disable this feature. By default, it is set to \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"false\"), \".\")), mdx(\"p\", null, \"A sample configuration looks like the following:\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"960px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"93.75%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/webp;base64,UklGRmAAAABXRUJQVlA4IFQAAADwAwCdASoUABMAPjEWiUOiISEUBAAgAwS0gAAYv+AaNRbvOvFJMw7wAP7/buGLB2ADtk14hkFiKUXIdrhQ6pITsCnB8jhxuiTOZbT6ZmOptFAAAAA=')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"picture\", {\n    parentName: \"span\"\n  }, \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/71b55c01c1a51d71cf55c1ff8e5a297c/cbea2/sentry.webp 240w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/42669/sentry.webp 480w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/10c02/sentry.webp 960w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/fead5/sentry.webp 1440w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/33cff/sentry.webp 1682w\"],\n    \"sizes\": \"(max-width: 960px) 100vw, 960px\",\n    \"type\": \"image/webp\"\n  }), \"\\n          \", mdx(\"source\", {\n    parentName: \"picture\",\n    \"srcSet\": [\"/static/71b55c01c1a51d71cf55c1ff8e5a297c/5243c/sentry.png 240w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/ab158/sentry.png 480w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/7d769/sentry.png 960w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/87339/sentry.png 1440w\", \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/f211e/sentry.png 1682w\"],\n    \"sizes\": \"(max-width: 960px) 100vw, 960px\",\n    \"type\": \"image/png\"\n  }), \"\\n          \", mdx(\"img\", {\n    parentName: \"picture\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"src\": \"/static/71b55c01c1a51d71cf55c1ff8e5a297c/7d769/sentry.png\",\n    \"alt\": \"Configuration\",\n    \"title\": \"Configuration\",\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    }\n  }), \"\\n        \"), \"\\n    \"), mdx(\"h2\", {\n    \"id\": \"identify\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#identify\",\n    \"aria-label\": \"identify permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Identify\"), mdx(\"p\", null, \"When an \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call is made, RudderStack calls \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.sentry.io/platforms/javascript/enriching-events/identify-user/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"strong\"\n  }, \"Sentry.setUser\"))), \" by passing the user traits.\"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"RudderStack discards the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call if none of the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"userId\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"userName\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \", or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"ip_address\"), \" is present. Atleast one of these four fields is needed to capture the user information. For more information, refer to the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://docs.sentry.io/platforms/javascript/enriching-events/identify-user/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Sentry documentation\")), \".\")), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, mdx(\"p\", null, \"RudderStack maps \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"userId\"), \" to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"id\"), \" while setting the user in Sentry.\")), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify(\\\"userid\\\", {\\n  name: \\\"Name\\\",\\n  email: \\\"name@website.com\\\",\\n});\\n\")), mdx(\"h2\", {\n    \"id\": \"faq\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#faq\",\n    \"aria-label\": \"faq permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"FAQ\"), mdx(\"h3\", {\n    \"id\": \"how-do-i-get-the-public-dsn-of-my-sentry-project\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#how-do-i-get-the-public-dsn-of-my-sentry-project\",\n    \"aria-label\": \"how do i get the public dsn of my sentry project permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"How do I get the public DSN of my Sentry Project?\"), mdx(\"p\", null, \"To get your public DSN, follow these steps:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Log into your \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://sentry.io/auth/login/\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Sentry account\")), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"In the left navigation bar, go to \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Projects\"), \" .\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Click on the right-most settings icon. This will open the settings window.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Click on \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Client Keys \", \"(\", \"DSN\", \")\"), \" under \", mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"SDK Setup\"), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Copy the DSN and use it in your RudderStack destination configuration.\")), mdx(\"h2\", {\n    \"id\": \"contact-us\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#contact-us\",\n    \"aria-label\": \"contact us permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Contact Us\"), mdx(\"p\", null, \"If you come across any issues while configuring or using Sentry with RudderStack, you can \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"mailto:docs@rudderstack.com\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"contact us\")), \" or start a conversation in our \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://rudderstack.com/join-rudderstack-slack-community\"\n  }, mdx(\"strong\", {\n    parentName: \"a\"\n  }, \"Slack\")), \" community.\"));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":1,"value":"Sentry"},{"depth":2,"value":"Getting Started"},{"depth":3,"value":"Connection Settings"},{"depth":2,"value":"Identify"},{"depth":2,"value":"FAQ"},{"depth":3,"value":"How do I get the public DSN of my Sentry Project?"},{"depth":2,"value":"Contact Us"}]}},"pageContext":{"slug":"/docs/destinations/error-reporting/sentry/","next":{"label":"Home","link":"/docs/home"},"repositoryEditUrl":"","repositoryProvider":""}},
    "staticQueryHashes": ["2501019404"]}