Skip to content

Commit e2a4925

Browse files
authored
update javascript.md
1 parent c7580b4 commit e2a4925

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/azure-monitor/app/javascript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ Breaking changes in the SDK V2 version:
214214
- 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.
215215
- Telemetry envelope has field name and structure changes due to data schema updates.
216216
- 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()`
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.generateW3CId()`
218+
> Note: Please update to use `Util.generateW3CId()` wherever you used `Util.newId()` before, in order to keep the traceID unique. Both will ultimately end up being the operation id.
218219
219220
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.
220221

0 commit comments

Comments
 (0)