зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1416629: Add a telemetry to get how many precentage of synthesized cors response for same-origin mode request. r=bkelly, data-r=francois
--HG-- extra : rebase_source : af6c7186f7b4c08fd94f5613d8bfe67666903c6e
This commit is contained in:
Родитель
3ed26e8aa6
Коммит
7dd219f393
|
@ -669,6 +669,13 @@ RespondWithHandler::ResolvedCallback(JSContext* aCx, JS::Handle<JS::Value> aValu
|
|||
}
|
||||
}
|
||||
|
||||
Telemetry::ScalarAdd(Telemetry::ScalarID::SW_SYNTHESIZED_RES_COUNT, 1);
|
||||
|
||||
if (mRequestMode == RequestMode::Same_origin &&
|
||||
response->Type() == ResponseType::Cors) {
|
||||
Telemetry::ScalarAdd(Telemetry::ScalarID::SW_CORS_RES_FOR_SO_REQ_COUNT, 1);
|
||||
}
|
||||
|
||||
UniquePtr<RespondWithClosure> closure(new RespondWithClosure(mInterceptedChannel,
|
||||
mRegistration,
|
||||
mRequestURL,
|
||||
|
|
|
@ -1358,6 +1358,39 @@ timestamps:
|
|||
record_in_processes:
|
||||
- main
|
||||
|
||||
# The following section contains the service worker scalars.
|
||||
sw:
|
||||
synthesized_res_count:
|
||||
bug_numbers:
|
||||
- 1416629
|
||||
description: >
|
||||
The count of number of synthesize response made by service workers.
|
||||
expires: "61"
|
||||
kind: uint
|
||||
notification_emails:
|
||||
- sw-telemetry@mozilla.com
|
||||
- ttung@mozilla.com
|
||||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- 'main'
|
||||
- 'content'
|
||||
|
||||
cors_res_for_so_req_count:
|
||||
bug_numbers:
|
||||
- 1416629
|
||||
description: >
|
||||
The count of number of synthesize response made by service workers and
|
||||
it's a cors type resposne for a same-origin mode request.
|
||||
expires: "61"
|
||||
kind: uint
|
||||
notification_emails:
|
||||
- sw-telemetry@mozilla.com
|
||||
- ttung@mozilla.com
|
||||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- 'main'
|
||||
- 'content'
|
||||
|
||||
# The following section is for probes testing the Telemetry system. They will not be
|
||||
# submitted in pings and are only used for testing.
|
||||
telemetry.test:
|
||||
|
|
Загрузка…
Ссылка в новой задаче