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
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/javascript-sdk-configuration.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,44 +128,44 @@ Source map support helps you debug minified JavaScript code with the ability to
128
128
129
129
Application Insights supports the uploading of source maps to your Azure Storage account blob container. You can use source maps to unminify call stacks found on the **End-to-end transaction details** page. You can also use source maps to unminify any exception sent by the [JavaScript SDK][ApplicationInsights-JS] or the [Node.js SDK][ApplicationInsights-Node.js].
130
130
131
-

131
+

132
132
133
-
## Create a new storage account and blob container
133
+
####Create a new storage account and blob container
134
134
135
135
If you already have an existing storage account or blob container, you can skip this step.
136
136
137
137
1.[Create a new storage account][create storage account].
138
138
1.[Create a blob container][create blob container] inside your storage account. Set **Public access level** to **Private** to ensure that your source maps aren't publicly accessible.
139
139
140
140
> [!div class="mx-imgBorder"]
141
-
>
141
+
>
142
142
143
-
## Push your source maps to your blob container
143
+
####Push your source maps to your blob container
144
144
145
145
Integrate your continuous deployment pipeline with your storage account by configuring it to automatically upload your source maps to the configured blob container.
146
146
147
147
You can upload source maps to your Azure Blob Storage container with the same folder structure they were compiled and deployed with. A common use case is to prefix a deployment folder with its version, for example, `1.2.3/static/js/main.js`. When you unminify via an Azure blob container called `sourcemaps`, the pipeline tries to fetch a source map located at `sourcemaps/1.2.3/static/js/main.js.map`.
148
148
149
-
### Upload source maps via Azure Pipelines (recommended)
149
+
#####Upload source maps via Azure Pipelines (recommended)
150
150
151
151
If you're using Azure Pipelines to continuously build and deploy your application, add an [Azure file copy][azure file copy] task to your pipeline to automatically upload your source maps.
152
152
153
153
> [!div class="mx-imgBorder"]
154
-
> 
154
+
> 
155
155
156
-
## Configure your Application Insights resource with a source map storage account
156
+
####Configure your Application Insights resource with a source map storage account
157
157
158
158
You have two options for configuring your Application Insights resource with a source map storage account.
159
159
160
-
### End-to-end transaction details tab
160
+
#####End-to-end transaction details tab
161
161
162
162
From the **End-to-end transaction details** tab, select **Unminify**. Configure your resource if it's unconfigured.
163
163
164
164
1. In the Azure portal, view the details of an exception that's minified.
165
165
1. Select **Unminify**.
166
166
1. If your resource isn't configured, configure it.
167
167
168
-
### Properties tab
168
+
#####Properties tab
169
169
170
170
To configure or change the storage account or blob container that's linked to your Application Insights resource:
171
171
@@ -175,20 +175,20 @@ To configure or change the storage account or blob container that's linked to yo
175
175
1. Select **Apply**.
176
176
177
177
> [!div class="mx-imgBorder"]
178
-
> 
178
+
> 
179
179
180
-
## Troubleshooting
180
+
####Troubleshooting
181
181
182
182
This section offers troubleshooting tips for common issues.
183
183
184
-
### Required Azure role-based access control settings on your blob container
184
+
#####Required Azure role-based access control settings on your blob container
185
185
186
186
Any user on the portal who uses this feature must be assigned at least as a [Storage Blob Data Reader][storage blob data reader] to your blob container. Assign this role to anyone who might use the source maps through this feature.
187
187
188
188
> [!NOTE]
189
189
> Depending on how the container was created, this role might not have been automatically assigned to you or your team.
190
190
191
-
### Source map not found
191
+
#####Source map not found
192
192
193
193
1. Verify that the corresponding source map is uploaded to the correct blob container.
194
194
1. Verify that the source map file is named after the JavaScript file it maps to and uses the suffix `.map`.
0 commit comments