-
Notifications
You must be signed in to change notification settings - Fork 937
Switch performance event traffic to transport endpoint #2593
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
Changes from 5 commits
591c769
e86086a
3a704dd
3d5342a
8d505a7
cdc8501
26ea86b
ba78d97
4f025e4
b787386
8b8c321
4180537
0e69357
eb1bcba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Unreleased | ||
- [changed] Enable new performance monitoring users to onboard in real time. | ||
zijianjoy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# 0.2.30 | ||
- [changed] Internal transport protocol update from proto2 to proto3. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,8 +150,22 @@ export function logNetworkRequest(networkRequest: NetworkRequest): void { | |
if (!settingsService.instrumentationEnabled) { | ||
return; | ||
} | ||
// Do not log the js sdk's call to cc service to avoid unnecessary cycle. | ||
if (networkRequest.url === settingsService.logEndPointUrl.split('?')[0]) { | ||
|
||
// Do not log the js sdk's call to transport service domain to avoid unnecessary cycle. | ||
// Need to blacklist both old and new endpoints to avoid migration gap. | ||
const networkRequestHostName = new URL(networkRequest.url).hostname; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. URL API is not available in IE11. Are you able to just use string parsing? I'm reluctant to ask people to add an additional polyfill unless there is a strong reason. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the heads-up! Decided not to use URL API and match the full URL without search parameter for cc and fl endpoints. |
||
|
||
// Blacklist old log endpoint. | ||
const logEndpointHostName = new URL(settingsService.logEndPointUrl).hostname; | ||
zijianjoy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (networkRequestHostName === logEndpointHostName) { | ||
return; | ||
} | ||
|
||
// Blacklist new transport endpoint. | ||
const transportEndpointHostName = new URL( | ||
settingsService.transportEndpointUrl | ||
).hostname; | ||
if (networkRequestHostName === transportEndpointHostName) { | ||
return; | ||
} | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.