Commit 678c519
committed
feat(errortracking): add core error-tracking package
Introduces pkg/util/log/errortracking/ with:
- ErrorLog struct and Submitter function type (types.go)
- slog.Handler filtering Error+ records, anchoring stack at r.PC (handler.go)
- SyncCapture wrapper for pre-capturing the stack before async boundaries
- Bouncer for per-key deduplication within a sliding time window (bouncer.go)
- Rollover delivers suppressed-only count (priorTotal-1) to avoid double-counting
- Cap enforced after pruneLocked: drops new keys as pass-through when all entries are within window1 parent b1b11bd commit 678c519
158 files changed
Lines changed: 2236 additions & 2396 deletions
File tree
- cmd
- agent/subcommands
- coverage
- dogstatsdreplay
- integrations
- launchgui
- validatepodannotation
- installer
- subcommands/daemon
- sbomgen
- secret-generic-connector
- serverless-init/exitcode
- system-probe/subcommands/ebpf
- comp
- agent
- cloudfoundrycontainer
- fx
- impl
- api
- api/apiimpl
- commonendpoints
- fx
- impl
- collector
- connectivitychecker
- fx
- impl
- core
- autodiscovery
- impl
- listeners
- providers
- delegatedauth
- api/cloudauth/aws
- secrets
- fx
- impl
- noop-impl
- status
- statusimpl
- tagger/fx-dual
- workloadmeta
- collectors
- catalog-clusteragent
- catalog-dogstatsd
- catalog-otel
- catalog-remote
- internal
- kubeapiserver
- kubemetadata
- defaults
- init
- forwarder/defaultforwarder
- healthplatform
- issues
- admisconfig
- admissionprobe
- checkfailure
- dockerpermissions
- invalidconfig
- rofspermissions
- runner
- def
- impl
- store/def
- host-profiler/flare
- fx
- impl
- logonduration/fx
- logs-library
- otelcol
- collector-contrib/impl
- ddflareextension/impl
- logsagentpipeline
- logsagentpipelineimpl
- otlp/components/exporter
- datadogexporter
- serializerexporter
- status/impl
- deps
- agent_integrations
- internal
- qbranch/anomalydetection-testbench
- tools
- omnibus/config/software
- pkg
- clusteragent/admission
- mutate/ncclprofiler
- probe
- collector/check/stats
- config
- schema/yaml
- setup
- fleet/installer
- networkdevice/profile
- serializer
- util
- log/errortracking
- prometheus
- trivy
- walker
- tasks/unit_tests/testdata/go_mod_formatter
- invalid_package
- valid_package
- test
- e2e-framework
- new-e2e
- tests
- agent-health
- sbom
- otel
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
281 | | - | |
| 280 | + | |
282 | 281 | | |
283 | | - | |
| 282 | + | |
284 | 283 | | |
285 | | - | |
| 284 | + | |
286 | 285 | | |
287 | | - | |
| 286 | + | |
288 | 287 | | |
289 | | - | |
| 288 | + | |
290 | 289 | | |
291 | | - | |
| 290 | + | |
292 | 291 | | |
293 | | - | |
| 292 | + | |
294 | 293 | | |
295 | | - | |
| 294 | + | |
296 | 295 | | |
297 | | - | |
| 296 | + | |
298 | 297 | | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
57 | 60 | | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
91 | 111 | | |
| 112 | + | |
92 | 113 | | |
93 | 114 | | |
94 | 115 | | |
| |||
97 | 118 | | |
98 | 119 | | |
99 | 120 | | |
| 121 | + | |
| 122 | + | |
100 | 123 | | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
105 | 128 | | |
| 129 | + | |
106 | 130 | | |
| 131 | + | |
107 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
108 | 138 | | |
| 139 | + | |
| 140 | + | |
109 | 141 | | |
110 | 142 | | |
111 | 143 | | |
112 | 144 | | |
| 145 | + | |
| 146 | + | |
113 | 147 | | |
114 | 148 | | |
115 | 149 | | |
| |||
0 commit comments