Skip to content

Commit dd348fb

Browse files
authored
Merge pull request #49102 from xiao-lix/patch-4
update javascript.md
2 parents 8e48880 + 1886d81 commit dd348fb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/azure-monitor/app/javascript.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ For runnable examples, see [Application Insights JavaScript SDK Samples](https:/
211211
## Upgrading from the old Version of Application Insights
212212

213213
Breaking changes in the SDK V2 version:
214-
- To allow for better API signatures, some of the API calls such as trackPageView, trackException have been updated. Running in IE8 or lower versions of the browser is not supported.
215-
- Telemetry envelope has field name and structure changes due to data schema updates.
216-
- Moved `context.operation` to `context.telemetryTrace`. Some fields were also changed (`operation.id` --> `telemetryTrace.traceID`)
217-
- If you want to manually refresh the current pageview ID (for example, in SPA apps) this can be done with `appInsights.properties.context.telemetryTrace.traceID = Util.newId()`
214+
- To allow for better API signatures, some of the API calls, such as trackPageView and trackException, have been updated. Running in Internet Explorer 8 and earlier versions of the browser is not supported.
215+
- The telemetry envelope has field name and structure changes due to data schema updates.
216+
- Moved `context.operation` to `context.telemetryTrace`. Some fields were also changed (`operation.id` --> `telemetryTrace.traceID`).
217+
- To manually refresh the current pageview ID (for example, in SPA apps), use `appInsights.properties.context.telemetryTrace.traceID = Util.generateW3CId()`.
218+
> [!NOTE]
219+
> To keep the trace ID unique, where you previously used `Util.newId()`, now use `Util.generateW3CId()`. Both ultimately end up being the operation ID.
218220
219221
If you're using the current application insights PRODUCTION SDK (1.0.20) and want to see if the new SDK works in runtime, update the URL depending on your current SDK loading scenario.
220222

0 commit comments

Comments
 (0)