Commit f5b9cd5
feat(wrangler): enable telemetry by default (#7291)
* feat: add telemetry commands (#7236)
* add telemetry commands
* changeset
* fix and test dates
* update changeset
* add global/project status
* default true
* remove changeset
* update wrangler telemetry status
feat: add `wrangler metrics` as an alias for `wrangler telemetry` (#7284)
* add metrics alias
* tests
* use each to test alias
feat: send metrics for command start/complete/error (#7267)
* stop collecting userId in telemetry
Co-authored-by: emily-shen <[email protected]>
* implement telemetry collection
* infer errorType based on the constructor name
* implement common event properties
* log common event properties
Co-authored-by: Edmund Hung <[email protected]>
* respect metric enabled/disabled
* remove dispatcher.identify
* include SPARROW_SOURCE_KEY in PR pre-release build
* fix tests
* ensure debug log covers the request failed message
* replace SPARROW_SOURCE_KEY regardless whethe env exists
---------
Co-authored-by: Edmund Hung <[email protected]>
Co-authored-by: emily-shen <[email protected]>
Co-authored-by: Edmund Hung <[email protected]>
fix nested properties (#7300)
feat: add banner to indicate when telemetry is on (#7302)
* add banner
* abort if telemetry disable
* basic sendNewEvent tests
* banner tests
* settle promises before exiting
* remove unnecessary banner logic
* just check if version is different
feat: add some more properties to telemetry events (#7320)
* isCI and isNonInteractive
* add argsUsed and argsCombination
* don't include args if value is false
* redact arg values if string
* lint
* isNonInteractive -> isInteractive
cleanup defineCommand
test duration
log metrics request failure
add draft telemetry.md
add node and os versions
don't send wrangler metrics from c3 if disabled
don't send c3 metrics from wrangler init
add config type
add more comments to send-event
move types out of send-event.ts
add comment about applyBeforeValidation
normalize into camelcase
refactor telemetry command
update tests and some comments
normalise all args
pr feedback
update telemetry.md
use useragent to get package manager
make sendEvent/sendNewEvent sync
rename sendEvent and sendNewEvent
fix lock file
remove flushPromises
changeset
fail silently
move telemetry.md out of src
tiody up readRawConfig
using the github browser merge is always a bad idea
fix e2e
* telemetry.md typos
* Update packages/wrangler/telemetry.md
---------
Co-authored-by: emily-shen <[email protected]>
Co-authored-by: lrapoport-cf <[email protected]>1 parent 4e571fd commit f5b9cd5
File tree
43 files changed
+1406
-529
lines changed- .changeset
- .github/workflows
- packages
- create-cloudflare/src/helpers
- __tests__
- wrangler
- scripts
- src
- __tests__
- config
- deploy
- docs
- kv
- metrics
- pages
- secret
- pipelines
- pubsub
- r2
- secret
- tail
- triggers
- user
- versions
- deployments
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1406
-529
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
58 | 116 | | |
59 | 117 | | |
60 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
152 | 174 | | |
153 | 175 | | |
154 | 176 | | |
| |||
0 commit comments