You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While making source maps available to Sentry from your servers is the easiest integration, it is not always advisable:
96
+
97
+
* Sentry may not always be able to reach your servers.
98
+
* If you do not specify versions in your asset URLs, there may be a version mismatch
99
+
* The additional latency may mean that source mappings are not available for all errors.
100
+
101
+
For these reasons, it is recommended to upload source maps to Sentry beforehand (see below).
102
+
103
+
.. admonition:: Working Behind a Firewall
104
+
105
+
While the recommended solution is to upload your source artifacts to Sentry, sometimes it’s necessary to allow communication from Sentry’s internal IPs. For more information on Sentry’s public IPs, :ref:`ip-ranges`.
66
106
67
107
Uploading Source Maps to Sentry
68
-
-------------------------------
108
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
109
70
110
In many cases your application may sit behind firewalls or you simply
71
111
can't expose source code to the public. Sentry provides an abstraction
@@ -105,7 +145,7 @@ sourcemaps point to.
105
145
106
146
When uploading the file, you'll need to reference it just as it would be referenced
107
147
if a browser (or filesystem) had to resolve its path. So for example, if your sourcemap
108
-
reference is just a relative path, it's relative to the location of the referencing file.
148
+
reference is just a relative path, it's **relative to the location of the referencing file**.
109
149
110
150
So for example, if you have ``http://example.com/app.min.js``, and the file contains the
111
151
reference to ``app.map.js``, the name of the uploaded file should be ``http://example.com/app.map.js``.
@@ -213,7 +253,7 @@ automatically uploaded to the release `2da95dfb052f477380608d59d32b4ab9`
213
253
in this case. If you want to use other extensions you can provide it with
214
254
the ``--ext`` parameter.
215
255
216
-
.. admonition:: Validating Sourcemaps
256
+
.. admonition:: Validating Sourcemaps with Sentry CLI
217
257
218
258
Unfortunately it can be quite challenging to ensure that sourcemaps
219
259
are actually valid themselves and uploaded correctly. To ensure
@@ -236,18 +276,22 @@ the ``--ext`` parameter.
236
276
237
277
.. sentry:edition:: hosted
238
278
239
-
Working Behind a Firewall
240
-
-------------------------
241
-
242
-
While the recommended solution is to upload your source artifacts to
243
-
Sentry, sometimes it's necessary to allow communication from Sentry's
244
-
internal IPs. For more information on Sentry's public IPs, see :ref:`ip-ranges`.
245
-
246
279
Troubleshooting
247
280
---------------
248
281
249
282
Source maps can sometimes be tricky to get going. If you're having trouble, try the following tips.
250
283
284
+
285
+
Verify your source maps are built correctly
286
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
287
+
288
+
We maintain an online validation tool that can be used to test your source
0 commit comments