Commit a490410
feat(shared): SDK telemetry (#2154)
* feat(clerk-js): Spike out telemetry collection
* feat(clerk-js): Add sampling rate and verbose option
* feat(shared): Move TelemtryCollector into shared, make it isomorphic
* feat(nextjs): Add telemtry collection for authMiddleware
* feat(shared): Support passing multiple events to the telemetry endpoint
* feat(shared): Abstract fetch into sendEvent
* feat(shared): Refactor SDK metadata handling to get accurate value
* feat(shared): Update endpoint, don't use no-cors
* fix(nextjs): Fix merge conflict
* feat(shared): Add batching to the telemetry collector
* feat(shared): Add opt-out support for SDK telemetry (#2099)
* feat(clerk-js): Add TelemetryCollector instance to backend client (#2134)
* chore(repo): Add changeset
* fix(shared): Fix tests that rely on fetch
* feat(shared): Set production endpoint
* feat(clerk-js): Make telemtry public, expose via isomorphicClerk
* feat(shared): Add doc on the TelemetryCollector
* feat(clerk-js): Support telemetry: false as a way to disable telemetry
* chore(shared): Tweak comment
* chore(shared): Tweak comment
* fix(clerk-sdk-node): Add PACKAGE_ constants for tests
* fix(fastify): Define PACKAGE_ constants in test environment
* feat(shared): Refactor telemetry instrumentation to rely on helpers
* feat(shared): Add telemetry notice
* feat(shared): Add postinstall script
* chore(shared): Add word
* chore(shared): Swallow errors in postinstall
* chore(repo): Allow scripts directory in subpaths-workaround
* feat(shared): Adjust types to enforce the event structure from event factory methods
* chore(shared): Simplify telemetry.record() API1 parent e6ad681 commit a490410
File tree
47 files changed
+1149
-464
lines changed- .changeset
- packages
- backend/src
- clerk-js/src
- core
- ui.retheme
- localization
- primitives
- fastify
- src
- __snapshots__
- gatsby-plugin-clerk/src
- ssr
- nextjs
- src
- server
- utils
- react/src
- remix/src
- client
- ssr
- sdk-node
- src
- types/src
- playground/app-router/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+1149
-464
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments