Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix readme traceID generate method #1687

Merged
merged 4 commits into from
Oct 28, 2021
Merged

fix readme traceID generate method #1687

merged 4 commits into from
Oct 28, 2021

Conversation

Karlie-777
Copy link
Contributor

appInsights.context.telemetryTrace.traceID = Util.newId() should be appInsights.context.telemetryTrace.traceID = Util.generateW3CId()

README.md Outdated
@@ -419,7 +419,7 @@ Breaking changes in the SDK V2 version:
- ES3 (IE8) compatibility, while running in IE8 or lower versions of the browser is not an officially supported scenario we are working to maintain ES3 level compatibility to ensure that the SDK will not cause any unexpected failures due to Javascript parsing error. See [ES3/IE8 Compatibility](#es3ie8-compatibility) below for further information.
- Telemetry envelope has field name and structure changes due to data schema updates.
- Moved `context.operation` to `context.telemetryTrace`. Some fields were also changed (`operation.id` --> `telemetryTrace.traceID`)
- If you want to maunally refresh the current pageview id (e.g. in SPA apps) this can be done with `appInsights.context.telemetryTrace.traceID = Util.newId()`
- If you want to maunally refresh the current pageview id (e.g. in SPA apps) this can be done with `appInsights.context.telemetryTrace.traceID = Util.generateW3CId()`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop the Util. prefix as there is now a generateW3Cid() function as per the recommendations in the Tree Shaking Support and Enhancements section of the readme

@MSNev MSNev added this to the 2.x.x (Future Release) milestone Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants