Repository navigation
Conversation
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
from
October 30, 2026 15:28
4858978 to
dda8431
Compare
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
4 times, most recently
from
November 3, 2026 14:46
2614775 to
4e56f70
Compare
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
2 times, most recently
from
November 5, 2026 18:08
2729c54 to
8573978
Compare
a-d-j-i
requested review from
agustingianni,
emiliorizzo,
friccobaldi and
juli
November 5, 2026 18:09
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
from
November 16, 2026 15:10
8573978 to
4de0db0
Compare
✅ Deploy Preview for dappfence-templates canceled.
|
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
2 times, most recently
from
November 16, 2026 17:06
24256b8 to
883cc93
Compare
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
2 times, most recently
from
November 17, 2026 13:20
7a0250f to
b46cd2b
Compare
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
from
November 27, 2026 16:35
b46cd2b to
97e90e9
Compare
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
from
December 4, 2026 17:23
97e90e9 to
bff9409
Compare
…ampling
Lays the config/manifest/context plumbing that the upcoming
security-processor + telemetry-executor stack consumes. Nothing here reads
the new values yet — this is purely infrastructure.
Manifest schema grows `telemetry: {eventsEndpoint, logsEndpoint, logsFilter}`;
`logsFilter = N` means 1-in-N installs sampled in via
`installationTime % logsFilter === 0`, which is stable per install and
can be widened/narrowed in a new manifest release without client changes.
Missing/invalid values collapse to DEFAULT_LOGS_FILTER=1000.
Resolution chain per channel is manifest → config → null. Config carries
bootstrap fallbacks via `?eventsEndpoint=` / `?logsEndpoint=` on the SW URL
(populated from `data-events-endpoint` / `data-logs-endpoint` on the client
script tag). `resolveManifest()` returns
`{appVersion, telemetryEndpoints: {events, logs}}` on top of the existing
`{mode, prepareRequest, verifyResponse}` — the executor reads this per
send cycle so a manifest rotation flips URLs/sampling without SW restart.
Also:
- `SYNC_TAG_REPORT_EVENTS = 'dappfence-report-events'` constant; lifecycle
uses it instead of a hardcoded string
- `safely(fn, onError)` helper for SW handlers that must not reject waitUntil
- `swContext.registerSync(tag)` wraps Background Sync registration, with a
clear error when the API is unavailable (Safari / older Firefox)
- test-app `build.js` passes `manifest.telemetry` through to the signed payload
- test-app ships a `telemetry-manifest.json` variant pointing at `/capture/events`
so e2e can observe POST bodies via the existing capture sink
a-d-j-i
force-pushed
the
feat/manifest-telemetry-config
branch
from
December 4, 2026 18:02
bff9409 to
53bbcea
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lays the config/manifest/context plumbing that the upcoming security-processor + telemetry-executor stack consumes. Nothing here reads the new values yet — this is purely infrastructure.
Manifest schema grows
telemetry: {eventsEndpoint, logsEndpoint, logsFilter};logsFilter = Nmeans 1-in-N installs sampled in viainstallationTime % logsFilter === 0, which is stable per install and can be widened/narrowed in a new manifest release without client changes. Missing/invalid values collapse to DEFAULT_LOGS_FILTER=1000.Resolution chain per channel is manifest → config → null. Config carries bootstrap fallbacks via
?eventsEndpoint=/?logsEndpoint=on the SW URL (populated fromdata-events-endpoint/data-logs-endpointon the client script tag).resolveManifest()returns{appVersion, telemetryEndpoints: {events, logs}}on top of the existing{mode, prepareRequest, verifyResponse}— the executor reads this per send cycle so a manifest rotation flips URLs/sampling without SW restart.Also:
SYNC_TAG_REPORT_EVENTS = 'dappfence-report-events'constant; lifecycle uses it instead of a hardcoded stringsafely(fn, onError)helper for SW handlers that must not reject waitUntilswContext.registerSync(tag)wraps Background Sync registration, with a clear error when the API is unavailable (Safari / older Firefox)build.jspassesmanifest.telemetrythrough to the signed payloadtelemetry-manifest.jsonvariant pointing at/capture/eventsso e2e can observe POST bodies via the existing capture sink