mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Tune referencePreviews sampling from 1:1000 to 1:10
We've logged zero events after 12hr of deployment, so it should be safe to increase sampling by 100x. Bug: T214493 Change-Id: Icd67aed448269f603dd4465f7e46eac9a64bd1ab
This commit is contained in:
parent
95c80dcb3e
commit
f6defd5fbc
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -46,7 +46,7 @@ export function renderReferencePreview(
|
||||||
url = escapeHTML( model.url ),
|
url = escapeHTML( model.url ),
|
||||||
linkMsg = escapeHTML( mw.msg( 'popups-refpreview-jump-to-reference' ) );
|
linkMsg = escapeHTML( mw.msg( 'popups-refpreview-jump-to-reference' ) );
|
||||||
|
|
||||||
const isTracking = navigator.sendBeacon && mw.eventLog && mw.eventLog.eventInSample( 1000 );
|
const isTracking = navigator.sendBeacon && mw.eventLog && mw.eventLog.eventInSample( 10 );
|
||||||
|
|
||||||
const $el = renderPopup( model.type,
|
const $el = renderPopup( model.type,
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in a new issue