Commit 5f76194
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]>1 parent e9b3bd1 commit 5f76194
File tree
12 files changed
+312
-326
lines changed- .github/workflows
- packages/wrangler
- scripts
- src
- __tests__
- config
- metrics
12 files changed
+312
-326
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| 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 | | |
| |||
0 commit comments